diff --git a/src/main/java/net/minecraft/entity/DataWatcher.java b/src/main/java/net/minecraft/entity/DataWatcher.java index 34cb31f..551ebd9 100644 --- a/src/main/java/net/minecraft/entity/DataWatcher.java +++ b/src/main/java/net/minecraft/entity/DataWatcher.java @@ -47,7 +47,7 @@ { throw new IllegalArgumentException("Unknown data type: " + p_75682_2_.getClass()); } - else if (p_75682_1_ > 31) + else if (p_75682_1_ > 31 || p_75682_1_ < 0) { throw new IllegalArgumentException("Data value id is too big with " + p_75682_1_ + "! (Max is " + 31 + ")"); }