fix and migrate 70%
This commit is contained in:
parent
8705cad578
commit
d1dcf6ab57
138 changed files with 3736 additions and 4735 deletions
|
|
@ -40,8 +40,6 @@ public class Divider {
|
|||
|
||||
var location = toLocation(session);
|
||||
|
||||
LoParkour.log("Added session at %s".formatted(Locations.toString(location, true)));
|
||||
|
||||
return location;
|
||||
}
|
||||
|
||||
|
|
@ -51,8 +49,6 @@ public class Divider {
|
|||
* @param session The session.
|
||||
*/
|
||||
public static void remove(Session session) {
|
||||
LoParkour.log("Removed session at %s".formatted(Locations.toString(toLocation(session), true)));
|
||||
|
||||
sections.remove(session);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@ public class World {
|
|||
|
||||
if (world != null) {
|
||||
LoParkour.getPlugin().getLogger().warning("Crash detected! The parkour world loading twice is not usual behaviour. This only happens after a server crash.");
|
||||
World.world = world; // ensure static field is populated
|
||||
}
|
||||
|
||||
if (Config.CONFIG.getBoolean("world.delete-on-reload")) {
|
||||
|
|
@ -61,6 +62,10 @@ public class World {
|
|||
}
|
||||
|
||||
private static void setup() {
|
||||
if (world == null) {
|
||||
LoParkour.getPlugin().getLogger().severe("Cannot setup world rules — world is null (createWorld failed).");
|
||||
return;
|
||||
}
|
||||
LoParkour.log("Initializing world rules");
|
||||
|
||||
world.setGameRule(GameRule.DO_FIRE_TICK, false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue