Update AbstractStorage.java

Tool armor stands were not being removed
This commit is contained in:
jameslfc19 2020-07-14 20:54:05 +01:00
parent bc88feaf00
commit a5df23d1d1

View File

@ -234,6 +234,8 @@ public abstract class AbstractStorage implements ConfigurationSerializable {
if(blockStand != null) blockStand.remove();
ArmorStand itemStand = locationInfo.getItemStand();
if(itemStand != null) itemStand.remove();
ArmorStand toolStand = locationInfo.getToolItemStand();
if(toolStand != null) toolStand.remove();
});
//Remove this location from storage.
locationInfoList.removeIf(locationInfo -> locationInfo.getLocation().equals(location));