it compiles?
This commit is contained in:
@@ -1,16 +1,43 @@
|
||||
--- a/net/minecraft/gametest/framework/GameTestServer.java
|
||||
+++ b/net/minecraft/gametest/framework/GameTestServer.java
|
||||
@@ -304,6 +_,13 @@
|
||||
@@ -139,6 +_,8 @@
|
||||
BlockPos spawnPos
|
||||
) {
|
||||
super(
|
||||
+ null, // Paper
|
||||
+ null, // Paper
|
||||
serverThread,
|
||||
storageSource,
|
||||
packRepository,
|
||||
@@ -154,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 = Lists.newArrayList(GameTestBatchFactory.fromTestFunction(this.testFunctions, serverLevel));
|
||||
serverLevel.setDefaultSpawnPos(this.spawnPos, 0.0F);
|
||||
@@ -303,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) {
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user