9
0
mirror of https://github.com/LeavesMC/Leaves.git synced 2026-01-04 15:41:31 +00:00

Open Fakeplayer Inventory (#17)

This commit is contained in:
violetc
2023-03-10 16:25:24 +08:00
parent aad10fbd07
commit 7161b8d231
49 changed files with 357 additions and 115 deletions

View File

@@ -95,10 +95,10 @@ index 8e9fb3731edc302ae472599f8e2d953d485a265e..0f639571f63adad7d2a738b7ce8dc015
// world.serverLevelData.setDifficulty(config.difficulty); // Paper - per level difficulty
world.setSpawnSettings(world.serverLevelData.getDifficulty() != Difficulty.PEACEFUL && config.spawnMonsters, config.spawnAnimals); // Paper - per level difficulty (from MinecraftServer#setDifficulty(ServerLevel, Difficulty, boolean))
diff --git a/src/main/java/top/leavesmc/leaves/LeavesConfig.java b/src/main/java/top/leavesmc/leaves/LeavesConfig.java
index 29acea996719de0e1333e51df310678a7025267a..9f7b9a56f2c55dca3c434fb858c37c061de7c279 100644
index a72995e1315fe492f4c2299a5d67b077ed094509..b770012135ed4e2423bdb7f44d06eedd077171ce 100644
--- a/src/main/java/top/leavesmc/leaves/LeavesConfig.java
+++ b/src/main/java/top/leavesmc/leaves/LeavesConfig.java
@@ -401,6 +401,11 @@ public final class LeavesConfig {
@@ -403,6 +403,11 @@ public final class LeavesConfig {
}
}