Remove workaround around Forge bug regarding fake player message sending

This commit is contained in:
raoulvdberge
2017-05-14 10:58:51 +02:00
parent b3ca4360e8
commit 8e7ab3b587

View File

@@ -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)));
}