From 8e7ab3b587cacc6673ee313e2f9518f64f638042 Mon Sep 17 00:00:00 2001 From: raoulvdberge Date: Sun, 14 May 2017 10:58:51 +0200 Subject: [PATCH] Remove workaround around Forge bug regarding fake player message sending --- src/main/java/com/raoulvdberge/refinedstorage/RSUtils.java | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/main/java/com/raoulvdberge/refinedstorage/RSUtils.java b/src/main/java/com/raoulvdberge/refinedstorage/RSUtils.java index beade1ed1..08d650431 100755 --- a/src/main/java/com/raoulvdberge/refinedstorage/RSUtils.java +++ b/src/main/java/com/raoulvdberge/refinedstorage/RSUtils.java @@ -373,13 +373,6 @@ public final class RSUtils { } public static void sendNoPermissionMessage(EntityPlayer player) { - // When a fake player isn't allowed to do something, we can't send a no permission message because there is no connection associated to the fake player. - // For example when a Destructor is attempting to break a network block on a secured network with the fake player. - // So, we first check if there is a connection. - if (player instanceof EntityPlayerMP && ((EntityPlayerMP) player).connection == null) { - return; - } - player.sendMessage(new TextComponentTranslation("misc.refinedstorage:security.no_permission").setStyle(new Style().setColor(TextFormatting.RED))); }