mirror of
https://github.com/songoda/EpicFurnaces.git
synced 2024-11-30 22:03:22 +01:00
Fix for null furnace level.
This commit is contained in:
parent
8155fb6c97
commit
bf8e44ee63
@ -14,7 +14,6 @@ import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.inventory.FurnaceSmeltEvent;
|
||||
import org.bukkit.inventory.FurnaceInventory;
|
||||
import org.bukkit.inventory.InventoryHolder;
|
||||
import org.bukkit.inventory.ItemStack;
|
||||
|
||||
import javax.script.ScriptEngine;
|
||||
import javax.script.ScriptEngineManager;
|
||||
|
@ -32,7 +32,10 @@ public abstract class Storage {
|
||||
* Dump FurnaceManager to file.
|
||||
*/
|
||||
for (Furnace furnace : plugin.getFurnaceManager().getFurnaces().values()) {
|
||||
if (furnace == null || furnace.getLocation() == null || furnace.getLocation().getWorld() == null) continue;
|
||||
if (furnace == null
|
||||
|| furnace.getLocation() == null
|
||||
|| furnace.getLocation().getWorld() == null
|
||||
|| furnace.getLevel() == null) continue;
|
||||
String locationStr = Methods.serializeLocation(furnace.getLocation());
|
||||
|
||||
prepareSaveItem("charged", new StorageItem("location", locationStr),
|
||||
|
Loading…
Reference in New Issue
Block a user