Co-authored-by: Bjarne Koll <git@lynxplay.dev> Co-authored-by: Jake Potrebic <jake.m.potrebic@gmail.com> Co-authored-by: Lulu13022002 <41980282+Lulu13022002@users.noreply.github.com> Co-authored-by: MiniDigger | Martin <admin@minidigger.dev> Co-authored-by: Nassim Jahnke <nassim@njahnke.dev> Co-authored-by: Noah van der Aa <ndvdaa@gmail.com> Co-authored-by: Owen1212055 <23108066+Owen1212055@users.noreply.github.com> Co-authored-by: Shane Freeder <theboyetronic@gmail.com> Co-authored-by: Spottedleaf <Spottedleaf@users.noreply.github.com> Co-authored-by: Tamion <70228790+notTamion@users.noreply.github.com> Co-authored-by: Warrior <50800980+Warriorrrr@users.noreply.github.com>
44 lines
1.5 KiB
Diff
44 lines
1.5 KiB
Diff
--- a/net/minecraft/gametest/framework/GameTestServer.java
|
|
+++ b/net/minecraft/gametest/framework/GameTestServer.java
|
|
@@ -133,6 +_,8 @@
|
|
boolean verify
|
|
) {
|
|
super(
|
|
+ null, // Paper
|
|
+ null, // Paper
|
|
serverThread,
|
|
storageSource,
|
|
packRepository,
|
|
@@ -148,8 +_,15 @@
|
|
|
|
@Override
|
|
public boolean initServer() {
|
|
- this.setPlayerList(new PlayerList(this, this.registries(), this.playerDataStorage, 1) {});
|
|
- this.loadLevel();
|
|
+ // Paper start
|
|
+ this.setPlayerList(new PlayerList(this, this.registries(), this.playerDataStorage, 1) {
|
|
+ @Override
|
|
+ public void loadAndSaveFiles() {
|
|
+ throw new UnsupportedOperationException("Should not be called in a GameTestServer");
|
|
+ }
|
|
+ });
|
|
+ this.loadLevel("blah");
|
|
+ // Paper end
|
|
ServerLevel serverLevel = this.overworld();
|
|
this.testBatches = this.evaluateTestsToRun(serverLevel);
|
|
LOGGER.info("Started game test server");
|
|
@@ -338,6 +_,13 @@
|
|
public boolean shouldInformAdmins() {
|
|
return false;
|
|
}
|
|
+
|
|
+ // Paper start
|
|
+ @Override
|
|
+ public org.bukkit.command.CommandSender getBukkitSender(final net.minecraft.commands.CommandSourceStack wrapper) {
|
|
+ throw new UnsupportedOperationException("Not supported.");
|
|
+ }
|
|
+ // Paper end
|
|
|
|
@Override
|
|
public boolean isSingleplayerOwner(GameProfile profile) {
|