Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
c5dbed177a
Commit
38ff383023
@ -26,21 +26,19 @@ import com.sk89q.worldedit.world.block.BaseBlock;
|
||||
import com.sk89q.worldedit.world.block.BlockTypes;
|
||||
import de.steamwar.bausystem.BauSystem;
|
||||
import de.steamwar.bausystem.region.Point;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.block.data.BlockData;
|
||||
import org.bukkit.entity.Player;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
public class CreatingOuterBlocksState implements LaufbauState {
|
||||
|
||||
private static final BaseBlock STONE;
|
||||
private static final BaseBlock SHELL;
|
||||
|
||||
static {
|
||||
STONE = BlockTypes.get("minecraft:stone").getDefaultState().toBaseBlock();
|
||||
SHELL = BlockTypes.get("minecraft:end_stone").getDefaultState().toBaseBlock();
|
||||
}
|
||||
|
||||
private List<Point> outerBlocks;
|
||||
@ -75,7 +73,7 @@ public class CreatingOuterBlocksState implements LaufbauState {
|
||||
return;
|
||||
}
|
||||
try {
|
||||
editSession.setBlock(BukkitAdapter.asBlockVector(location), STONE);
|
||||
editSession.setBlock(BukkitAdapter.asBlockVector(location), SHELL);
|
||||
location.getBlock().setType(Material.STONE, false);
|
||||
} catch (MaxChangedBlocksException e) {
|
||||
e.printStackTrace();
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren