SteamWar/BauSystem2.0
Archiviert
12
0

Update Laufbau
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2022-02-05 20:00:44 +01:00
Ursprung c5dbed177a
Commit 38ff383023

Datei anzeigen

@ -26,21 +26,19 @@ import com.sk89q.worldedit.world.block.BaseBlock;
import com.sk89q.worldedit.world.block.BlockTypes; import com.sk89q.worldedit.world.block.BlockTypes;
import de.steamwar.bausystem.BauSystem; import de.steamwar.bausystem.BauSystem;
import de.steamwar.bausystem.region.Point; import de.steamwar.bausystem.region.Point;
import org.bukkit.Bukkit;
import org.bukkit.Location; import org.bukkit.Location;
import org.bukkit.Material; import org.bukkit.Material;
import org.bukkit.World; import org.bukkit.World;
import org.bukkit.block.data.BlockData;
import org.bukkit.entity.Player; import org.bukkit.entity.Player;
import java.util.List; import java.util.List;
public class CreatingOuterBlocksState implements LaufbauState { public class CreatingOuterBlocksState implements LaufbauState {
private static final BaseBlock STONE; private static final BaseBlock SHELL;
static { static {
STONE = BlockTypes.get("minecraft:stone").getDefaultState().toBaseBlock(); SHELL = BlockTypes.get("minecraft:end_stone").getDefaultState().toBaseBlock();
} }
private List<Point> outerBlocks; private List<Point> outerBlocks;
@ -75,7 +73,7 @@ public class CreatingOuterBlocksState implements LaufbauState {
return; return;
} }
try { try {
editSession.setBlock(BukkitAdapter.asBlockVector(location), STONE); editSession.setBlock(BukkitAdapter.asBlockVector(location), SHELL);
location.getBlock().setType(Material.STONE, false); location.getBlock().setType(Material.STONE, false);
} catch (MaxChangedBlocksException e) { } catch (MaxChangedBlocksException e) {
e.printStackTrace(); e.printStackTrace();