Fix max nearby entities class check (#9967)
This commit is contained in:
@@ -66,6 +66,9 @@ https://bugs.mojang.com/browse/MC-174630
|
||||
https://bugs.mojang.com/browse/MC-153086
|
||||
Fix the beacon deactivation sound always playing when broken
|
||||
|
||||
https://bugs.mojang.com/browse/MC-259321
|
||||
Fix spawners checking max nearby entities with correct type
|
||||
|
||||
== AT ==
|
||||
public net/minecraft/world/entity/Mob leashInfoTag
|
||||
|
||||
@@ -408,8 +411,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ return new net.minecraft.world.level.entity.EntityTypeTest<>() {
|
||||
+ @Nullable
|
||||
+ @Override
|
||||
+ public T tryCast(B clazz) {
|
||||
+ return (T)(clazz.equals(clazz.getClass()) ? clazz : null);
|
||||
+ public T tryCast(B entity) {
|
||||
+ return (T)(clazz.equals(entity.getClass()) ? entity : null);
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
|
||||
Reference in New Issue
Block a user