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; return;
case SLAB: case SLAB:
currentBlock.setType(slabMaterial); currentBlock.setType(slabMaterial);
editSession.getChangeSet().add(new BlockChange(BukkitAdapter.asBlockVector(currentBlock.getLocation()), airType, slabType)); editSession.setBlock(BukkitAdapter.asBlockVector(currentBlock.getLocation()), slabType);
break; break;
case BLOCK: case BLOCK:
case DEFAULT: case DEFAULT:
currentBlock.setType(blockMaterial); currentBlock.setType(blockMaterial);
editSession.getChangeSet().add(new BlockChange(BukkitAdapter.asBlockVector(currentBlock.getLocation()), airType, blockType)); editSession.setBlock(BukkitAdapter.asBlockVector(currentBlock.getLocation()), blockType);
break; break;
case UNMOVABLE: case UNMOVABLE:
currentBlock.setType(Material.JUKEBOX); currentBlock.setType(Material.JUKEBOX);
editSession.getChangeSet().add(new BlockChange(BukkitAdapter.asBlockVector(currentBlock.getLocation()), airType, jukeboxType)); editSession.setBlock(BukkitAdapter.asBlockVector(currentBlock.getLocation()), jukeboxType);
break; break;
case UNMOVABLE_SLAB: case UNMOVABLE_SLAB:
currentBlock.setType(Material.COBWEB); currentBlock.setType(Material.COBWEB);
editSession.getChangeSet().add(new BlockChange(BukkitAdapter.asBlockVector(currentBlock.getLocation()), airType, cobwebType)); editSession.setBlock(BukkitAdapter.asBlockVector(currentBlock.getLocation()), cobwebType);
break; break;
default: default:
emptyBlocks.add(currentBlock.getLocation().toVector()); emptyBlocks.add(currentBlock.getLocation().toVector());