1
0
mirror of https://e.coding.net/circlecloud/QuickShop.git synced 2024-11-22 01:58:54 +00:00

修复获取到Location为null的问题...

Signed-off-by: 502647092 <jtb1@163.com>
This commit is contained in:
502647092 2016-03-06 20:51:22 +08:00
parent a0e826f8fc
commit c05dd7ea0f

View File

@ -222,6 +222,9 @@ public class ContainerShop implements Shop {
* null if this shop is not attached to another.
*/
public ContainerShop getAttachedShop() {
if (this.getLocation() != null) {
return null;
}
final Block c = Util.getSecondHalf(this.getLocation().getBlock());
if (c == null) {
return null;