Thanks for the info, I'll take a look into that.
Edit: I made modifications to that method since there were items that should have fired independently of which world it was in.
@Override
public boolean onBlockActivated(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockRayTraceResult result) {
TileEntity tileEntity = world.getTileEntity(pos);
if (tileEntity instanceof INamedContainerProvider){
if (!world.isRemote) {
NetworkHooks.openGui((ServerPlayerEntity) player, (INamedContainerProvider) tileEntity, tileEntity.getPos());
}
} else {
throw new IllegalStateException("Our named container provider is missing.");
}
return true;
//return super.onBlockActivated(state, world, pos, player, hand, result);
}