mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-30 16:19:03 +01:00
11 lines
901 B
Diff
11 lines
901 B
Diff
--- a/net/minecraft/gametest/framework/TestCommand.java
|
|
+++ b/net/minecraft/gametest/framework/TestCommand.java
|
|
@@ -278,7 +_,7 @@
|
|
}
|
|
|
|
private static int resetGameTestInfo(GameTestInfo gameTestInfo) {
|
|
- gameTestInfo.getLevel().getEntities(null, gameTestInfo.getStructureBounds()).stream().forEach(entity -> entity.remove(Entity.RemovalReason.DISCARDED));
|
|
+ gameTestInfo.getLevel().getEntities(null, gameTestInfo.getStructureBounds()).stream().forEach(entity -> entity.remove(Entity.RemovalReason.DISCARDED, org.bukkit.event.entity.EntityRemoveEvent.Cause.DISCARD)); // Paper
|
|
gameTestInfo.getStructureBlockEntity().placeStructure(gameTestInfo.getLevel());
|
|
StructureUtils.removeBarriers(gameTestInfo.getStructureBounds(), gameTestInfo.getLevel());
|
|
say(gameTestInfo.getLevel(), "Reset succeded for: " + gameTestInfo.getTestName(), ChatFormatting.GREEN);
|