From d3e0f1e14d2c8dfa201d29e7057cd1f98880cbf3 Mon Sep 17 00:00:00 2001 From: coolGi2007 Date: Tue, 14 Dec 2021 08:36:33 +0000 Subject: [PATCH] leetom can you check it works before updating core --- .../com/seibel/lod/common/wrappers/WrapperFactory.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/common/src/main/java/com/seibel/lod/common/wrappers/WrapperFactory.java b/common/src/main/java/com/seibel/lod/common/wrappers/WrapperFactory.java index 046e098ec..f3737bde1 100644 --- a/common/src/main/java/com/seibel/lod/common/wrappers/WrapperFactory.java +++ b/common/src/main/java/com/seibel/lod/common/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) {