Fix fixItemsMergingThroughWalls check (#9707)
This commit is contained in:
@@ -13,9 +13,11 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||||||
|
|
||||||
if (entityitem.isMergable()) {
|
if (entityitem.isMergable()) {
|
||||||
+ // Paper start - Fix items merging through walls
|
+ // Paper start - Fix items merging through walls
|
||||||
+ if (this.level().clipDirect(this.position(), entityitem.position(),
|
+ if (this.level().paperConfig().fixes.fixItemsMergingThroughWalls) {
|
||||||
+ net.minecraft.world.phys.shapes.CollisionContext.of(this)) == net.minecraft.world.phys.HitResult.Type.BLOCK) {
|
+ if (this.level().clipDirect(this.position(), entityitem.position(),
|
||||||
+ continue;
|
+ net.minecraft.world.phys.shapes.CollisionContext.of(this)) == net.minecraft.world.phys.HitResult.Type.BLOCK) {
|
||||||
|
+ continue;
|
||||||
|
+ }
|
||||||
+ }
|
+ }
|
||||||
+ // Paper end - Fix items merging through walls
|
+ // Paper end - Fix items merging through walls
|
||||||
this.tryToMerge(entityitem);
|
this.tryToMerge(entityitem);
|
||||||
|
|||||||
Reference in New Issue
Block a user