This commit is contained in:
fullwall 2018-04-09 00:26:16 +08:00
parent 772ab5fb7b
commit 74989cd93e

View File

@ -248,7 +248,7 @@ public class NMS {
}
public static void setPeekShulker(org.bukkit.entity.Entity entity, int peek) {
if (entity.getType().name().equals("SHULKER")) {
if (!entity.getType().name().equals("SHULKER")) {
throw new IllegalArgumentException("entity must be a shulker");
}
BRIDGE.setPeekShulker(entity, peek);