Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
c92d610ca9
Commit
e49724e593
@ -194,7 +194,8 @@ public class Explosion {
|
|||||||
int oY = sY > dY ? -1 : 1;
|
int oY = sY > dY ? -1 : 1;
|
||||||
int oZ = sZ > dZ ? -1 : 1;
|
int oZ = sZ > dZ ? -1 : 1;
|
||||||
while (true) {
|
while (true) {
|
||||||
if (simulatorData.getBlockType(floor(x), floor(y), floor(z)) != Material.AIR) {
|
Material material = simulatorData.getBlockType(floor(x), floor(y), floor(z));
|
||||||
|
if (material != Material.LAVA && material != Material.WATER && !material.isAir()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -54,10 +54,10 @@ public class PreviewRecord {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void show(Player player) {
|
public void show(Player player) {
|
||||||
|
destroyedBlocks.forEach(vector -> {
|
||||||
|
player.sendBlockChange(vector.toLocation(player.getWorld()), AIR_BLOCK_DATA);
|
||||||
|
});
|
||||||
showModeMap.computeIfAbsent(player, p -> {
|
showModeMap.computeIfAbsent(player, p -> {
|
||||||
destroyedBlocks.forEach(vector -> {
|
|
||||||
p.sendBlockChange(vector.toLocation(player.getWorld()), AIR_BLOCK_DATA);
|
|
||||||
});
|
|
||||||
ShowModeParameter showModeParameter = new ShowModeParameter();
|
ShowModeParameter showModeParameter = new ShowModeParameter();
|
||||||
showModeParameter.enableWater();
|
showModeParameter.enableWater();
|
||||||
showModeParameter.enableCount();
|
showModeParameter.enableCount();
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren