Skip to content

Commit

Permalink
Make dimension field non-final
Browse files Browse the repository at this point in the history
  • Loading branch information
calcastor committed Jan 1, 2024
1 parent 130617a commit bcd452f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions patches/server/0224-Make-dimension-field-non-final.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From d6d18e96f0707b8036baa9a4b6fa6d7518bcd116 Mon Sep 17 00:00:00 2001
From: "BT (calcastor/mame)" <[email protected]>
Date: Sun, 31 Dec 2023 22:03:05 -0800
Subject: [PATCH] Make dimension field non-final


diff --git a/src/main/java/net/minecraft/server/WorldServer.java b/src/main/java/net/minecraft/server/WorldServer.java
index 9a2508c8..e536ae29 100644
--- a/src/main/java/net/minecraft/server/WorldServer.java
+++ b/src/main/java/net/minecraft/server/WorldServer.java
@@ -53,7 +53,7 @@ public class WorldServer extends World implements IAsyncTaskHandler {
private List<NextTickListEntry> V = Lists.newArrayList();

// CraftBukkit start
- public final int dimension;
+ public int dimension; // SportPaper - make non-final

// Add env and gen to constructor
public WorldServer(MinecraftServer minecraftserver, IDataManager idatamanager, WorldData worlddata, int i, MethodProfiler methodprofiler, org.bukkit.World.Environment env, org.bukkit.generator.ChunkGenerator gen) {
--
2.43.0

0 comments on commit bcd452f

Please sign in to comment.