mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-15 04:05:50 -07:00
Update CraftBukkit to Minecraft 1.4.4.
This commit is contained in:
@@ -41,7 +41,7 @@ public class BlockTripwire extends Block {
|
||||
public void doPhysics(World world, int i, int j, int k, int l) {
|
||||
int i1 = world.getData(i, j, k);
|
||||
boolean flag = (i1 & 2) == 2;
|
||||
boolean flag1 = !world.t(i, j - 1, k);
|
||||
boolean flag1 = !world.v(i, j - 1, k);
|
||||
|
||||
if (flag != flag1) {
|
||||
this.c(world, i, j, k, i1, 0);
|
||||
@@ -64,7 +64,7 @@ public class BlockTripwire extends Block {
|
||||
}
|
||||
|
||||
public void onPlace(World world, int i, int j, int k) {
|
||||
int l = world.t(i, j - 1, k) ? 0 : 2;
|
||||
int l = world.v(i, j - 1, k) ? 0 : 2;
|
||||
|
||||
world.setData(i, j, k, l);
|
||||
this.d(world, i, j, k, l);
|
||||
@@ -76,7 +76,7 @@ public class BlockTripwire extends Block {
|
||||
|
||||
public void a(World world, int i, int j, int k, int l, EntityHuman entityhuman) {
|
||||
if (!world.isStatic) {
|
||||
if (entityhuman.bP() != null && entityhuman.bP().id == Item.SHEARS.id) {
|
||||
if (entityhuman.bT() != null && entityhuman.bT().id == Item.SHEARS.id) {
|
||||
world.setData(i, j, k, l | 8);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user