Fixed #95
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user