mirror of
https://github.com/taoneill/war.git
synced 2024-11-30 14:13:23 +01:00
Merge pull request #531 from MegaMinerJon/patch-1
Fix for (some of) the map reset crashes. Thanks @MegaMinerJon.
This commit is contained in:
commit
00af397929
@ -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++;
|
||||||
|
Loading…
Reference in New Issue
Block a user