13
0

Adding check for obsidian and bedrock (for replacement in arena)

Dieser Commit ist enthalten in:
Lixfel 2019-12-10 18:38:00 +01:00
Ursprung 62aebed927
Commit 536eed2823
2 geänderte Dateien mit 6 neuen und 4 gelöschten Zeilen

Datei anzeigen

@ -19,6 +19,8 @@ import java.util.logging.Level;
class CheckSchemType_12 {
private static final int TNT = Material.TNT.getId();
private static final int SLIME = Material.SLIME_BLOCK.getId();
private static final int OBSIDIAN = Material.OBSIDIAN.getId();
private static final int BEDROCK = Material.BEDROCK.getId();
private static final int DISPENSER = Material.DISPENSER.getId();
private static final int JUKEBOX = Material.JUKEBOX.getId();
private static final int CHEST = Material.CHEST.getId();
@ -96,10 +98,10 @@ class CheckSchemType_12 {
final BaseBlock block = clipboard.getBlock(new Vector(x, y, z));
final int blockId = block.getId();
if(blockId == TNT)
if(blockId == TNT || blockId == OBSIDIAN)
tnt++;
if(blockId == SLIME)
if(blockId == SLIME || blockId == BEDROCK)
slime++;
if(blockId == DISPENSER)

Datei anzeigen

@ -82,10 +82,10 @@ class CheckSchemType_14 {
final BaseBlock block = clipboard.getFullBlock(BlockVector3.at(x, y, z));
final Material blockMaterial = Material.matchMaterial(block.getBlockType().getId());
if(blockMaterial == Material.TNT)
if(blockMaterial == Material.TNT || blockMaterial == Material.OBSIDIAN)
tnt++;
if(blockMaterial == Material.SLIME_BLOCK)
if(blockMaterial == Material.SLIME_BLOCK || blockMaterial == Material.BEDROCK)
slime++;
if(blockMaterial == Material.DISPENSER)