Merge pull request #531 from MegaMinerJon/patch-1

Fix for (some of) the map reset crashes. Thanks @MegaMinerJon.
This commit is contained in:
taoneill 2012-08-13 19:04:54 -07:00
commit 00af397929

View File

@ -205,7 +205,8 @@ public class ZoneVolumeMapper {
deferred.add(new DeferredBlockReset(x, y, z, diskBlockType, diskBlockData)); deferred.add(new DeferredBlockReset(x, y, z, diskBlockType, diskBlockData));
} else { } else {
// regular block // regular block
worldBlock.setType(Material.getMaterial(diskBlockType)); if(diskBlockType >-1){
worldBlock.setType(Material.getMaterial(diskBlockType))
worldBlock.setData(diskBlockData); worldBlock.setData(diskBlockData);
} }
noOfResetBlocks++; noOfResetBlocks++;