fix loading more than 2 zones
All checks were successful
/ Auto-Build-App (push) Successful in 1m39s
All checks were successful
/ Auto-Build-App (push) Successful in 1m39s
This commit is contained in:
parent
c69117aa41
commit
04549403c5
2 changed files with 5 additions and 3 deletions
|
@ -10,9 +10,9 @@ id=cookie_utils
|
|||
|
||||
# Dependency Versions
|
||||
cosmic_reach_rev=alpha
|
||||
cosmic_reach_version=0.4.7
|
||||
cosmic_reach_version=0.4.8
|
||||
# If unspecified, will use the version above
|
||||
cosmic_reach_server_version=0.4.7
|
||||
cosmic_reach_server_version=0.4.8
|
||||
cosmic_quilt_version=2.3.1
|
||||
#2.2.0
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package net.pietru.cookie_utils.mixins;
|
||||
|
||||
import finalforeach.cosmicreach.GameSingletons;
|
||||
import finalforeach.cosmicreach.TickRunner;
|
||||
import finalforeach.cosmicreach.networking.netty.NettyServer;
|
||||
import finalforeach.cosmicreach.world.Zone;
|
||||
import org.spongepowered.asm.mixin.Mixin;
|
||||
|
@ -16,7 +17,7 @@ import static net.pietru.cookie_utils.utils.prop.get_server_property_array;
|
|||
@Mixin(NettyServer.class)
|
||||
public class NettyServerMixin {
|
||||
|
||||
@Inject(method = "run", at = @At("HEAD"))
|
||||
@Inject(method = "Lfinalforeach/cosmicreach/networking/netty/NettyServer;<init>()V", at = @At("TAIL"))
|
||||
private void on_singletons_create(CallbackInfo ci){
|
||||
try {
|
||||
ArrayList<String> zones = get_server_property_array("zones","[]");
|
||||
|
@ -31,5 +32,6 @@ public class NettyServerMixin {
|
|||
} catch (IOException e) {
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
TickRunner.INSTANCE.continueTickThread();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue