SteamWar/BauSystem2.0
Archiviert
12
0

Fix Panzer NPE's
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2022-04-13 21:04:10 +02:00
Ursprung 89273ee73f
Commit 8a8d8888c8

Datei anzeigen

@ -119,20 +119,20 @@ public class Panzern {
return;
case SLAB:
currentBlock.setType(slabMaterial);
editSession.getChangeSet().add(new BlockChange(BukkitAdapter.asBlockVector(currentBlock.getLocation()), airType, slabType));
editSession.setBlock(BukkitAdapter.asBlockVector(currentBlock.getLocation()), slabType);
break;
case BLOCK:
case DEFAULT:
currentBlock.setType(blockMaterial);
editSession.getChangeSet().add(new BlockChange(BukkitAdapter.asBlockVector(currentBlock.getLocation()), airType, blockType));
editSession.setBlock(BukkitAdapter.asBlockVector(currentBlock.getLocation()), blockType);
break;
case UNMOVABLE:
currentBlock.setType(Material.JUKEBOX);
editSession.getChangeSet().add(new BlockChange(BukkitAdapter.asBlockVector(currentBlock.getLocation()), airType, jukeboxType));
editSession.setBlock(BukkitAdapter.asBlockVector(currentBlock.getLocation()), jukeboxType);
break;
case UNMOVABLE_SLAB:
currentBlock.setType(Material.COBWEB);
editSession.getChangeSet().add(new BlockChange(BukkitAdapter.asBlockVector(currentBlock.getLocation()), airType, cobwebType));
editSession.setBlock(BukkitAdapter.asBlockVector(currentBlock.getLocation()), cobwebType);
break;
default:
emptyBlocks.add(currentBlock.getLocation().toVector());