mirror of
https://github.com/PaperMC/Paper.git
synced 2024-09-12 06:58:11 +02:00
30 lines
1.5 KiB
Diff
30 lines
1.5 KiB
Diff
From becc7744e642d615743a11637894f462cae2a8b3 Mon Sep 17 00:00:00 2001
|
|
From: md_5 <git@md-5.net>
|
|
Date: Tue, 30 Sep 2014 21:43:15 +1000
|
|
Subject: [PATCH] Refactor ItemDoor Place
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/ItemDoor.java b/src/main/java/net/minecraft/server/ItemDoor.java
|
|
index eef43df..6e92cab 100644
|
|
--- a/src/main/java/net/minecraft/server/ItemDoor.java
|
|
+++ b/src/main/java/net/minecraft/server/ItemDoor.java
|
|
@@ -48,9 +48,11 @@ public class ItemDoor extends Item {
|
|
BlockPosition blockposition3 = blockposition.up();
|
|
IBlockData iblockdata = block.getBlockData().set(BlockDoor.FACING, enumdirection).set(BlockDoor.HINGE, flag2 ? BlockDoor.EnumDoorHinge.RIGHT : BlockDoor.EnumDoorHinge.LEFT);
|
|
|
|
- world.setTypeAndData(blockposition, iblockdata.set(BlockDoor.HALF, BlockDoor.EnumDoorHalf.LOWER), 2);
|
|
- world.setTypeAndData(blockposition3, iblockdata.set(BlockDoor.HALF, BlockDoor.EnumDoorHalf.UPPER), 2);
|
|
- world.applyPhysics(blockposition, block);
|
|
- world.applyPhysics(blockposition3, block);
|
|
+ // Spigot start - update physics after the block multi place event
|
|
+ world.setTypeAndData(blockposition, iblockdata.set(BlockDoor.HALF, BlockDoor.EnumDoorHalf.LOWER), 3);
|
|
+ world.setTypeAndData(blockposition3, iblockdata.set(BlockDoor.HALF, BlockDoor.EnumDoorHalf.UPPER), 3);
|
|
+ // world.applyPhysics(blockposition, block);
|
|
+ // world.applyPhysics(blockposition3, block);
|
|
+ // Spigot end
|
|
}
|
|
}
|
|
--
|
|
2.1.4
|
|
|