mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-27 06:50:12 +01:00
Cleanup misc import from last commit
This commit is contained in:
parent
3e9f39faa2
commit
3ac1a8d708
1 changed files with 2 additions and 11 deletions
|
@ -5,19 +5,10 @@ Subject: [PATCH] Prevent compass from loading chunks
|
|||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/item/CompassItem.java b/src/main/java/net/minecraft/world/item/CompassItem.java
|
||||
index 5d3047a420efe59063e90bfc7b42392127e0ad7d..f77270ba7c6c9b544b958771d54dfbc04df2d3c5 100644
|
||||
index 5d3047a420efe59063e90bfc7b42392127e0ad7d..7c4a2f8bb3efd11db2f8711952cc26a067c6d56b 100644
|
||||
--- a/src/main/java/net/minecraft/world/item/CompassItem.java
|
||||
+++ b/src/main/java/net/minecraft/world/item/CompassItem.java
|
||||
@@ -19,6 +19,8 @@ import net.minecraft.world.entity.player.Player;
|
||||
import net.minecraft.world.item.context.UseOnContext;
|
||||
import net.minecraft.world.level.Level;
|
||||
import net.minecraft.world.level.block.Blocks;
|
||||
+import net.minecraft.world.level.chunk.ChunkStatus;
|
||||
+
|
||||
import org.slf4j.Logger;
|
||||
|
||||
public class CompassItem extends Item implements Vanishable {
|
||||
@@ -77,7 +79,7 @@ public class CompassItem extends Item implements Vanishable {
|
||||
@@ -77,7 +77,7 @@ public class CompassItem extends Item implements Vanishable {
|
||||
Optional<ResourceKey<Level>> optional = getLodestoneDimension(compoundTag);
|
||||
if (optional.isPresent() && optional.get() == world.dimension() && compoundTag.contains("LodestonePos")) {
|
||||
BlockPos blockPos = NbtUtils.readBlockPos(compoundTag.getCompound("LodestonePos"));
|
||||
|
|
Loading…
Reference in a new issue