mirror of
https://github.com/taoneill/war.git
synced 2024-11-30 06:03: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));
|
||||
} else {
|
||||
// regular block
|
||||
worldBlock.setType(Material.getMaterial(diskBlockType));
|
||||
if(diskBlockType >-1){
|
||||
worldBlock.setType(Material.getMaterial(diskBlockType))
|
||||
worldBlock.setData(diskBlockData);
|
||||
}
|
||||
noOfResetBlocks++;
|
||||
|
Loading…
Reference in New Issue
Block a user