Skip to content

Commit

Permalink
Remote Accessor: Check for Correct Dimension
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlamonster authored Sep 28, 2024
1 parent 6b5a74a commit d1e20df
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 d1e20df

Please sign in to comment.