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:
parent
f8888f5c9f
commit
abc81b93ed
@ -695,8 +695,14 @@ public class ContainerShop implements Shop {
|
||||
this.displayItem = null;
|
||||
return;
|
||||
}
|
||||
if (this.getLocation().getWorld() == null) {
|
||||
return;// Ignore if world not loaded...
|
||||
}
|
||||
final DisplayItem disItem = this.getDisplayItem();
|
||||
final Location dispLoc = disItem.getDisplayLocation();
|
||||
if (dispLoc.getWorld() == null) {
|
||||
return;
|
||||
}
|
||||
if (dispLoc.getBlock() != null && dispLoc.getBlock().getType() == Material.WATER) { // Flowing
|
||||
// water.Stationery water does not move items.
|
||||
disItem.remove();
|
||||
|
Loading…
Reference in New Issue
Block a user