mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-27 21:19:00 +01:00
fixed redstone torches
This commit is contained in:
parent
672b06727d
commit
9869ace146
@ -289,21 +289,27 @@ public class World implements IBlockAccess {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public boolean e(int i, int j, int k, int l) {
|
public boolean e(int i, int j, int k, int l) {
|
||||||
|
// Craftbukkit start
|
||||||
|
int old = this.getTypeId(i, j, k);
|
||||||
if (this.setTypeId(i, j, k, l)) {
|
if (this.setTypeId(i, j, k, l)) {
|
||||||
this.f(i, j, k, l);
|
this.f(i, j, k, l == 0 ? old : l);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// Craftbukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean b(int i, int j, int k, int l, int i1) {
|
public boolean b(int i, int j, int k, int l, int i1) {
|
||||||
|
// Craftbukkit start
|
||||||
|
int old = this.getTypeId(i, j, k);
|
||||||
if (this.setTypeIdAndData(i, j, k, l, i1)) {
|
if (this.setTypeIdAndData(i, j, k, l, i1)) {
|
||||||
this.f(i, j, k, l);
|
this.f(i, j, k, l == 0 ? old : l);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// Craftbukkit end
|
||||||
}
|
}
|
||||||
|
|
||||||
public void g(int i, int j, int k) {
|
public void g(int i, int j, int k) {
|
||||||
|
Loading…
Reference in New Issue
Block a user