Don't mutate the position of Items for MC-4 Fix (#12702)
This commit is contained in:
@@ -24,6 +24,21 @@
|
||||
}
|
||||
|
||||
public ItemEntity(Level level, double posX, double posY, double posZ, ItemStack itemStack, double deltaX, double deltaY, double deltaZ) {
|
||||
@@ -79,6 +_,14 @@
|
||||
this.bobOffs = other.bobOffs;
|
||||
}
|
||||
|
||||
+ // Paper start - Require item entities to send their location precisely (Fixes MC-4)
|
||||
+ {
|
||||
+ if (io.papermc.paper.configuration.GlobalConfiguration.get().misc.sendFullPosForItemEntities) {
|
||||
+ this.setRequiresPrecisePosition(true);
|
||||
+ }
|
||||
+ }
|
||||
+ // Paper end - Require item entities to send their location precisely (Fixes MC-4)
|
||||
+
|
||||
@Override
|
||||
public boolean dampensVibrations() {
|
||||
return this.getItem().is(ItemTags.DAMPENS_VIBRATIONS);
|
||||
@@ -116,7 +_,7 @@
|
||||
@Override
|
||||
public void tick() {
|
||||
|
||||
Reference in New Issue
Block a user