mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-29 12:27:59 +01:00
Fix fixItemsMergingThroughWalls check (#9707)
This commit is contained in:
parent
021d59363b
commit
19a5d6d225
@ -13,10 +13,12 @@ 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().paperConfig().fixes.fixItemsMergingThroughWalls) {
|
||||||
+ if (this.level().clipDirect(this.position(), entityitem.position(),
|
+ if (this.level().clipDirect(this.position(), entityitem.position(),
|
||||||
+ net.minecraft.world.phys.shapes.CollisionContext.of(this)) == net.minecraft.world.phys.HitResult.Type.BLOCK) {
|
+ net.minecraft.world.phys.shapes.CollisionContext.of(this)) == net.minecraft.world.phys.HitResult.Type.BLOCK) {
|
||||||
+ continue;
|
+ continue;
|
||||||
+ }
|
+ }
|
||||||
|
+ }
|
||||||
+ // Paper end - Fix items merging through walls
|
+ // Paper end - Fix items merging through walls
|
||||||
this.tryToMerge(entityitem);
|
this.tryToMerge(entityitem);
|
||||||
if (this.isRemoved()) {
|
if (this.isRemoved()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user