This commit is contained in:
fullwall 2018-04-09 00:26:16 +08:00
parent 772ab5fb7b
commit 74989cd93e
1 changed files with 1 additions and 1 deletions

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