fixed some bugs
This commit is contained in:
parent
81dbf16d3f
commit
ee192c1035
@ -78,6 +78,7 @@ public class Spleef extends StatelessGame {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private void destroyBlock(PlayerStartDiggingEvent event) {
|
private void destroyBlock(PlayerStartDiggingEvent event) {
|
||||||
|
if(!isRunning) return;
|
||||||
setBlock(event.getBlockPosition(), Block.AIR);
|
setBlock(event.getBlockPosition(), Block.AIR);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -7,10 +7,7 @@ import eu.mhsl.minenet.minigames.util.BatchUtil;
|
|||||||
import eu.mhsl.minenet.minigames.world.generator.terrain.CircularPlateTerrainGenerator;
|
import eu.mhsl.minenet.minigames.world.generator.terrain.CircularPlateTerrainGenerator;
|
||||||
import net.minestom.server.MinecraftServer;
|
import net.minestom.server.MinecraftServer;
|
||||||
import net.minestom.server.coordinate.Pos;
|
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.GameMode;
|
||||||
import net.minestom.server.entity.metadata.other.PrimedTntMeta;
|
|
||||||
import net.minestom.server.event.player.PlayerMoveEvent;
|
import net.minestom.server.event.player.PlayerMoveEvent;
|
||||||
import net.minestom.server.instance.batch.AbsoluteBlockBatch;
|
import net.minestom.server.instance.batch.AbsoluteBlockBatch;
|
||||||
import net.minestom.server.instance.block.Block;
|
import net.minestom.server.instance.block.Block;
|
||||||
@ -67,10 +64,10 @@ public class TntRun extends StatelessGame {
|
|||||||
setBlock(firstLocation, Block.AIR);
|
setBlock(firstLocation, Block.AIR);
|
||||||
setBlock(secondLocation, Block.AIR);
|
setBlock(secondLocation, Block.AIR);
|
||||||
|
|
||||||
Entity fallingTnt = new Entity(EntityType.TNT);
|
// Entity fallingTnt = new Entity(EntityType.TNT);
|
||||||
PrimedTntMeta fallingTntMeta = (PrimedTntMeta) fallingTnt.getEntityMeta();
|
// PrimedTntMeta fallingTntMeta = (PrimedTntMeta) fallingTnt.getEntityMeta();
|
||||||
fallingTntMeta.setFuseTime(20);
|
// fallingTntMeta.setFuseTime(20);
|
||||||
fallingTnt.setInstance(this, secondLocation);
|
// fallingTnt.setInstance(this, secondLocation);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -36,7 +36,7 @@ join_notFound;Lobby not found: ;Lobby konnte nicht gefunden werden:
|
|||||||
;;
|
;;
|
||||||
ns:score#;;
|
ns:score#;;
|
||||||
result;Results;Ergebnisse
|
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
|
finish;You did it;Du hast es geschafft
|
||||||
death;You are out;Du hast verloren
|
death;You are out;Du hast verloren
|
||||||
done;Finish;Fertig
|
done;Finish;Fertig
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user