Skip to content

Commit a6e775d

Browse files
committed
fix non gamerule related compile errors
1 parent bdde20a commit a6e775d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import net.minecraft.server.network.ServerPlayerConnection;
3030
import net.minecraft.util.ProblemReporter;
3131
import net.minecraft.world.entity.Entity;
32+
import net.minecraft.world.entity.EntityProcessor;
3233
import net.minecraft.world.entity.EntitySpawnReason;
3334
import net.minecraft.world.entity.boss.EnderDragonPart;
3435
import net.minecraft.world.entity.boss.enderdragon.EnderDragon;
@@ -1028,7 +1029,7 @@ private Entity copy(net.minecraft.world.level.Level level) {
10281029
final TagValueOutput output = TagValueOutput.createWithContext(problemReporter, level.registryAccess());
10291030
this.getHandle().saveAsPassenger(output, false, true, true);
10301031

1031-
return net.minecraft.world.entity.EntityType.loadEntityRecursive(output.buildResult(), level, EntitySpawnReason.LOAD, java.util.function.Function.identity());
1032+
return net.minecraft.world.entity.EntityType.loadEntityRecursive(output.buildResult(), level, EntitySpawnReason.LOAD, EntityProcessor.NOP);
10321033
}
10331034
}
10341035

paper-server/src/main/java/org/bukkit/craftbukkit/entity/CraftEntitySnapshot.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import com.mojang.logging.LogUtils;
66
import net.minecraft.nbt.CompoundTag;
77
import net.minecraft.util.ProblemReporter;
8+
import net.minecraft.world.entity.EntityProcessor;
89
import net.minecraft.world.entity.EntitySpawnReason;
910
import net.minecraft.world.level.storage.TagValueInput;
1011
import net.minecraft.world.level.storage.TagValueOutput;
@@ -58,7 +59,7 @@ public String getAsString() {
5859

5960
private net.minecraft.world.entity.Entity createInternal(World world) {
6061
net.minecraft.world.level.Level level = ((CraftWorld) world).getHandle();
61-
net.minecraft.world.entity.Entity internal = net.minecraft.world.entity.EntityType.loadEntityRecursive(this.data, level, EntitySpawnReason.LOAD, Function.identity());
62+
net.minecraft.world.entity.Entity internal = net.minecraft.world.entity.EntityType.loadEntityRecursive(this.data, level, EntitySpawnReason.LOAD, EntityProcessor.NOP);
6263
if (internal == null) { // Try creating by type
6364
internal = CraftEntityType.bukkitToMinecraft(this.type).create(level, EntitySpawnReason.LOAD);
6465
}

0 commit comments

Comments
 (0)