Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
659f09cb82
Commit
2e4825c4a9
@ -192,15 +192,9 @@ public class Detonator {
|
||||
if (block.getType() == Material.STONE_BUTTON) {
|
||||
return Detoblock.STONE_BUTTON;
|
||||
}
|
||||
if (block.getType().name().contains("BUTTON")) {
|
||||
return Detoblock.WOOD_BUTTON;
|
||||
}
|
||||
if (block.getType() == Material.HEAVY_WEIGHTED_PRESSURE_PLATE || block.getType() == Material.LIGHT_WEIGHTED_PRESSURE_PLATE) {
|
||||
return Detoblock.WEIGHTED_PRESSURE_PLATE;
|
||||
}
|
||||
if (block.getType().name().contains("PRESSURE_PLATE")) {
|
||||
return Detoblock.PRESSURE_PLATE;
|
||||
}
|
||||
|
||||
switch (block.getType()) {
|
||||
case LEVER:
|
||||
@ -215,6 +209,12 @@ public class Detonator {
|
||||
if (block.getBlockData() instanceof Powerable) {
|
||||
return Detoblock.POWERABLE;
|
||||
} else {
|
||||
if (block.getType().name().contains("BUTTON")) {
|
||||
return Detoblock.WOOD_BUTTON;
|
||||
}
|
||||
if (block.getType().name().contains("PRESSURE_PLATE")) {
|
||||
return Detoblock.PRESSURE_PLATE;
|
||||
}
|
||||
return Detoblock.INVALID;
|
||||
}
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren