fixed some bugs

This commit is contained in:
Elias Müller 2024-12-27 10:58:07 +01:00
parent 81dbf16d3f
commit ee192c1035
3 changed files with 6 additions and 8 deletions

View File

@ -78,6 +78,7 @@ public class Spleef extends StatelessGame {
}
private void destroyBlock(PlayerStartDiggingEvent event) {
if(!isRunning) return;
setBlock(event.getBlockPosition(), Block.AIR);
}

View File

@ -7,10 +7,7 @@ import eu.mhsl.minenet.minigames.util.BatchUtil;
import eu.mhsl.minenet.minigames.world.generator.terrain.CircularPlateTerrainGenerator;
import net.minestom.server.MinecraftServer;
import net.minestom.server.coordinate.Pos;
import net.minestom.server.entity.Entity;
import net.minestom.server.entity.EntityType;
import net.minestom.server.entity.GameMode;
import net.minestom.server.entity.metadata.other.PrimedTntMeta;
import net.minestom.server.event.player.PlayerMoveEvent;
import net.minestom.server.instance.batch.AbsoluteBlockBatch;
import net.minestom.server.instance.block.Block;
@ -67,10 +64,10 @@ public class TntRun extends StatelessGame {
setBlock(firstLocation, Block.AIR);
setBlock(secondLocation, Block.AIR);
Entity fallingTnt = new Entity(EntityType.TNT);
PrimedTntMeta fallingTntMeta = (PrimedTntMeta) fallingTnt.getEntityMeta();
fallingTntMeta.setFuseTime(20);
fallingTnt.setInstance(this, secondLocation);
// Entity fallingTnt = new Entity(EntityType.TNT);
// PrimedTntMeta fallingTntMeta = (PrimedTntMeta) fallingTnt.getEntityMeta();
// fallingTntMeta.setFuseTime(20);
// fallingTnt.setInstance(this, secondLocation);
}
}
}

View File

@ -36,7 +36,7 @@ join_notFound;Lobby not found: ;Lobby konnte nicht gefunden werden:
;;
ns:score#;;
result;Results;Ergebnisse
thanks;Thank you for Playing;Danke für's spielen
thanks;Thank you for Playing;Danke für's Spielen
finish;You did it;Du hast es geschafft
death;You are out;Du hast verloren
done;Finish;Fertig

1 map en_us de_de
36
37 ns:score#
38 result Results Ergebnisse
39 thanks Thank you for Playing Danke für's spielen Danke für's Spielen
40 finish You did it Du hast es geschafft
41 death You are out Du hast verloren
42 done Finish Fertig