This commit is contained in:
LOOHP committed 2025-04-16 15:34:01 +01:00
1 parent 4a9ca90188
commit d64cbfccfc
1 file changed
+1
@@ -158,6 +158,7 @@ public class V1_21_5 extends NMSWrapper {
@Override
public int getNextAvailableMapId(World world) {
try {
persistentIdCountsLastMapIdField.setAccessible(true);
WorldServer worldServer = ((CraftWorld) world).getHandle();
PersistentIdCounts persistentIdCounts = worldServer.p().J().w().a(PersistentIdCounts.b);
return persistentIdCountsLastMapIdField.getInt(persistentIdCounts) + 1;