Skip to content

Commit

Permalink
Merge pull request #14 from Vlamonster/patch-1
Browse files Browse the repository at this point in the history
Remote Accessor: Check for Correct Dimension
  • Loading branch information
Dream-Master authored Sep 29, 2024
2 parents 6b5a74a + d1e20df commit 4390529
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/remoteio/common/item/ItemRemoteAccessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@ public boolean onItemUse(ItemStack stack, EntityPlayer player, World world, int
float fy, float fz) {
if (getCoordinates(stack) != null) {
DimensionalCoords coords = getCoordinates(stack);
RemoteIO.proxy.activateBlock(world, coords.x, coords.y, coords.z, player, side, fx, fy, fz);
return true;
if (coords.dimensionID == world.provider.dimensionId) {
RemoteIO.proxy.activateBlock(world, coords.x, coords.y, coords.z, player, side, fx, fy, fz);
return true;
}
}

return false;
Expand Down

0 comments on commit 4390529

Please sign in to comment.