mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-23 21:49:50 +00:00
Fixes for Little Blocks Mod.
This commit is contained in:
1 parent
c66d0b17f0
commit
5cb8d281a7
1 file changed
+6
-1
@@ -173,6 +173,9 @@ public class BlockPistonRelay extends BlockMod implements IWandable, ILexiconabl
|
||||
}
|
||||
|
||||
public static WorldData get(World world) {
|
||||
if(world.mapStorage == null)
|
||||
return null;
|
||||
|
||||
WorldData data = (WorldData) world.mapStorage.loadData(WorldData.class, ID);
|
||||
|
||||
if (data == null) {
|
||||
@@ -232,7 +235,9 @@ public class BlockPistonRelay extends BlockMod implements IWandable, ILexiconabl
|
||||
pos = mappedPositions.get(s);
|
||||
mappedPositions.remove(s);
|
||||
mappedPositions.put(newPos, pos);
|
||||
WorldData.get(world).markDirty();
|
||||
WorldData data = WorldData.get(world);
|
||||
if(data != null)
|
||||
data.markDirty();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user