Files
Minecraft1.12SRC/conf/patches/minecraft_merged_ff/net.minecraft.world.World.java.patch
2020-07-20 00:21:55 +08:00

26 lines
999 B
Diff

diff -r -U 3 minecraft\net\minecraft\world\World.java minecraft_patched\net\minecraft\world\World.java
--- minecraft\net\minecraft\world\World.java
+++ minecraft_patched\net\minecraft\world\World.java
@@ -2161,8 +2161,8 @@
List<T> list = Lists.<T>newArrayList();
for(Entity entity : this.field_72996_f) {
- if (p_175644_1_.isAssignableFrom(entity.getClass()) && p_175644_2_.apply(entity)) {
- list.add(entity);
+ if (p_175644_1_.isAssignableFrom(entity.getClass()) && p_175644_2_.apply((T)entity)) {
+ list.add((T)entity);
}
}
@@ -2173,8 +2173,8 @@
List<T> list = Lists.<T>newArrayList();
for(Entity entity : this.field_73010_i) {
- if (p_175661_1_.isAssignableFrom(entity.getClass()) && p_175661_2_.apply(entity)) {
- list.add(entity);
+ if (p_175661_1_.isAssignableFrom(entity.getClass()) && p_175661_2_.apply((T)entity)) {
+ list.add((T)entity);
}
}