mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-09 04:09:54 +01:00
Fixed block type/data not updating with the world
This commit is contained in:
parent
d374bff8d0
commit
860e1b762d
@ -36,17 +36,23 @@ public class WorldServer extends World {
|
|||||||
@Override
|
@Override
|
||||||
public boolean c(int i1, int j1, int k1, int l1) {
|
public boolean c(int i1, int j1, int k1, int l1) {
|
||||||
boolean result = super.c(i1, j1, k1, l1);
|
boolean result = super.c(i1, j1, k1, l1);
|
||||||
if (world != null) world.updateBlock(i1, j1, k1);
|
if ((result) && (world != null)) world.updateBlock(i1, j1, k1);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean d(int i1, int j1, int k1, int l1) {
|
public boolean a(int i1, int j1, int k1, int l1) {
|
||||||
boolean result = super.d(i1, j1, k1, l1);
|
boolean result = super.a(i1, j1, k1, l1);
|
||||||
if (world != null) world.updateBlock(i1, j1, k1);
|
if ((result) && (world != null)) world.updateBlock(i1, j1, k1);
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void a(int i1, int j1, int k1, TileEntity tileentity) {
|
||||||
|
super.a(i1, j1, k1, tileentity);
|
||||||
|
if (world != null) world.updateBlock(i1, j1, k1);
|
||||||
|
}
|
||||||
|
|
||||||
public CraftWorld getWorld() {
|
public CraftWorld getWorld() {
|
||||||
return world;
|
return world;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user