diff --git a/src/main/java/com/seibel/lod/forge/wrappers/WrapperFactory.java b/src/main/java/com/seibel/lod/forge/wrappers/WrapperFactory.java index 0ece9e04f..ae6cd4dcc 100644 --- a/src/main/java/com/seibel/lod/forge/wrappers/WrapperFactory.java +++ b/src/main/java/com/seibel/lod/forge/wrappers/WrapperFactory.java @@ -62,6 +62,15 @@ public class WrapperFactory implements IWrapperFactory return new ChunkPosWrapper(); } + @Override + public AbstractChunkPosWrapper createChunkPos(long xAndZPositionCombined) + { + int x = (int) (xAndZPositionCombined & Integer.MAX_VALUE); + int z = (int) (xAndZPositionCombined >> Long.SIZE / 2) & Integer.MAX_VALUE; + + return new ChunkPosWrapper(x, z); + } + @Override public AbstractChunkPosWrapper createChunkPos(int x, int z) {