Fixed fatal crash at world generation.

This commit is contained in:
Nathan Adams 2012-03-23 14:32:00 +00:00
parent 40e0962735
commit 6ef9500410

View file

@ -29,7 +29,7 @@ public abstract class WorldGenerator {
protected void setTypeAndData(BlockChangeDelegate world, int i, int j, int k, int l, int i1) {
if (this.a) {
world.setTypeIdAndData(i, j, k, l, i1);
} else if (world instanceof World && ((World)world).getChunkAtWorldCoords(i >> 4, k >> 4).seenByPlayer) {
} else if (world instanceof World && ((World)world).getChunkAtWorldCoords(i, k).seenByPlayer) { // CraftBukkit - remove in next update
if (world.setRawTypeIdAndData(i, j, k, l, i1)) {
((World)world).notify(i, j, k);
}