File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
src/main/java/xyz/nucleoid/fantasy Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -62,11 +62,7 @@ void delete(ServerWorld world) {
6262
6363 if (this .serverAccess .getWorlds ().remove (dimensionKey , world )) {
6464 ServerWorldEvents .UNLOAD .invoker ().onWorldUnload (this .server , world );
65- try {
66- world .close ();
67- } catch (IOException e ) {
68- Fantasy .LOGGER .warn ("Failed to close world resources" , e );
69- }
65+
7066 SimpleRegistry <DimensionOptions > dimensionsRegistry = getDimensionsRegistry (this .server );
7167 RemoveFromRegistry .remove (dimensionsRegistry , dimensionKey .getValue ());
7268
@@ -108,11 +104,7 @@ public void setDone() {}
108104 }, true , false );
109105
110106 ServerWorldEvents .UNLOAD .invoker ().onWorldUnload (RuntimeWorldManager .this .server , world );
111- try {
112- world .close ();
113- } catch (IOException e ) {
114- Fantasy .LOGGER .warn ("Failed to close world resources" , e );
115- }
107+
116108 SimpleRegistry <DimensionOptions > dimensionsRegistry = getDimensionsRegistry (RuntimeWorldManager .this .server );
117109 RemoveFromRegistry .remove (dimensionsRegistry , dimensionKey .getValue ());
118110 }
You can’t perform that action at this time.
0 commit comments