2017-05-05 01:08:52 +02:00
|
|
|
From 5b807a76010dd4c8c21bc1108e17a5902329afc0 Mon Sep 17 00:00:00 2001
|
2016-04-25 02:56:04 +02:00
|
|
|
From: Zach Brown <zach.brown@destroystokyo.com>
|
|
|
|
Date: Sun, 24 Apr 2016 19:49:33 -0500
|
|
|
|
Subject: [PATCH] SPIGOT-1401: Fix dispenser, dropper, furnace placement
|
|
|
|
|
|
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/BlockDispenser.java b/src/main/java/net/minecraft/server/BlockDispenser.java
|
2017-03-25 06:22:02 +01:00
|
|
|
index f8eaf2ac3..8e7884490 100644
|
2016-04-25 02:56:04 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/BlockDispenser.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/BlockDispenser.java
|
2016-11-17 03:23:38 +01:00
|
|
|
@@ -20,6 +20,9 @@ public class BlockDispenser extends BlockTileEntity {
|
2016-04-25 02:56:04 +02:00
|
|
|
return 4;
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // Paper start - Removed override of onPlace that was reversing placement direction when
|
|
|
|
+ // adjacent to another block, which was not consistent with single player block placement
|
|
|
|
+ /*
|
|
|
|
public void onPlace(World world, BlockPosition blockposition, IBlockData iblockdata) {
|
|
|
|
super.onPlace(world, blockposition, iblockdata);
|
|
|
|
this.e(world, blockposition, iblockdata);
|
2016-11-17 03:23:38 +01:00
|
|
|
@@ -49,6 +52,8 @@ public class BlockDispenser extends BlockTileEntity {
|
2016-04-25 02:56:04 +02:00
|
|
|
world.setTypeAndData(blockposition, iblockdata.set(BlockDispenser.FACING, enumdirection).set(BlockDispenser.TRIGGERED, Boolean.valueOf(false)), 2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ */
|
|
|
|
+ // Paper end
|
|
|
|
|
2016-11-17 03:23:38 +01:00
|
|
|
public boolean interact(World world, BlockPosition blockposition, IBlockData iblockdata, EntityHuman entityhuman, EnumHand enumhand, EnumDirection enumdirection, float f, float f1, float f2) {
|
2016-04-25 02:56:04 +02:00
|
|
|
if (world.isClientSide) {
|
|
|
|
diff --git a/src/main/java/net/minecraft/server/BlockFurnace.java b/src/main/java/net/minecraft/server/BlockFurnace.java
|
2017-03-25 06:22:02 +01:00
|
|
|
index 528005446..b0d03e408 100644
|
2016-04-25 02:56:04 +02:00
|
|
|
--- a/src/main/java/net/minecraft/server/BlockFurnace.java
|
|
|
|
+++ b/src/main/java/net/minecraft/server/BlockFurnace.java
|
2016-11-17 03:23:38 +01:00
|
|
|
@@ -18,6 +18,9 @@ public class BlockFurnace extends BlockTileEntity {
|
2016-04-25 02:56:04 +02:00
|
|
|
return Item.getItemOf(Blocks.FURNACE);
|
|
|
|
}
|
|
|
|
|
|
|
|
+ // Paper start - Removed override of onPlace that was reversing placement direction when
|
|
|
|
+ // adjacent to another block, which was not consistent with single player block placement
|
|
|
|
+ /*
|
|
|
|
public void onPlace(World world, BlockPosition blockposition, IBlockData iblockdata) {
|
|
|
|
this.e(world, blockposition, iblockdata);
|
|
|
|
}
|
2016-11-17 03:23:38 +01:00
|
|
|
@@ -43,6 +46,8 @@ public class BlockFurnace extends BlockTileEntity {
|
2016-04-25 02:56:04 +02:00
|
|
|
world.setTypeAndData(blockposition, iblockdata.set(BlockFurnace.FACING, enumdirection), 2);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
+ */
|
|
|
|
+ // Paper end
|
|
|
|
|
2016-11-17 03:23:38 +01:00
|
|
|
public boolean interact(World world, BlockPosition blockposition, IBlockData iblockdata, EntityHuman entityhuman, EnumHand enumhand, EnumDirection enumdirection, float f, float f1, float f2) {
|
2016-04-25 02:56:04 +02:00
|
|
|
if (world.isClientSide) {
|
|
|
|
--
|
2017-05-05 01:08:52 +02:00
|
|
|
2.12.2
|
2016-04-25 02:56:04 +02:00
|
|
|
|