Merge pull request #167 from IpsumCapra/1.18-forge

Fixed getRedstoneInput function on redstone interface card and block.
This commit is contained in:
Sangar
2022-04-06 21:01:02 +02:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}

View File

@@ -93,7 +93,7 @@ public final class RedstoneInterfaceCardItemDevice extends AbstractItemRPCDevice
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;
}