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 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();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren