13
0
geforkt von Mirrors/Paper

Send block updates even when applyPhysics is false. Fixes BUKKIT-3971

The CraftBlock class is setting bit 0x4 of the update flag when bit 0x2
should in fact be set here. Bit 0x2 means "do updates"; bit 0x4 means
"don't do updates if the world is static, even when bit 0x2 is set".
Dieser Commit ist enthalten in:
Des Herriott 2013-04-29 08:46:31 +01:00 committet von Nate Mortensen
Ursprung 4e7ad05111
Commit 28fb514a4d

Datei anzeigen

@ -92,7 +92,7 @@ public class CraftBlock implements Block {
if (applyPhysics) {
chunk.getHandle().world.setData(x, y, z, data, 3);
} else {
chunk.getHandle().world.setData(x, y, z, data, 4);
chunk.getHandle().world.setData(x, y, z, data, 2);
}
}
@ -112,7 +112,7 @@ public class CraftBlock implements Block {
if (applyPhysics) {
return setTypeId(type);
} else {
return chunk.getHandle().world.setTypeIdAndData(x, y, z, type, getData(), 4);
return chunk.getHandle().world.setTypeIdAndData(x, y, z, type, getData(), 2);
}
}
@ -120,7 +120,7 @@ public class CraftBlock implements Block {
if (applyPhysics) {
return chunk.getHandle().world.setTypeIdAndData(x, y, z, type, data, 3);
} else {
boolean success = chunk.getHandle().world.setTypeIdAndData(x, y, z, type, data, 4);
boolean success = chunk.getHandle().world.setTypeIdAndData(x, y, z, type, data, 2);
if (success) {
chunk.getHandle().world.notify(x, y, z);
}