Fixed getRedstoneInput function on redstone interface card and block.
This commit is contained in:
@@ -76,7 +76,7 @@ public final class RedstoneInterfaceBlockEntity extends ModBlockEntity implement
|
||||
assert direction != null;
|
||||
|
||||
final BlockPos neighborPos = pos.relative(direction);
|
||||
final ChunkPos chunkPos = new ChunkPos(neighborPos.getX(), neighborPos.getZ());
|
||||
final ChunkPos chunkPos = new ChunkPos(neighborPos);
|
||||
if (!level.hasChunk(chunkPos.x, chunkPos.z)) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user