fixed universal key changer not working
@@ -24,7 +24,6 @@ public class ItemUniversalKeyChanger extends Item {
@Override
public EnumActionResult onItemUseFirst(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ, EnumHand hand) {
- if(!world.isRemote) {
if(world.getTileEntity(pos) != null && world.getTileEntity(pos) instanceof IPasswordProtected) {
if(((IOwnable) world.getTileEntity(pos)).getOwner().isOwner(player)) {
player.openGui(mod_SecurityCraft.instance, GuiHandler.KEY_CHANGER_GUI_ID, world, pos.getX(), pos.getY(), pos.getZ());
@@ -35,7 +34,6 @@ public class ItemUniversalKeyChanger extends Item {
return EnumActionResult.SUCCESS;
}
- }
return EnumActionResult.FAIL;
}
