Posted July 12, 20205 yr Hi, I am updating from 1.12.2 to 1.14.4, and need the serverInstance. In 1.12.2 I used: FMLCommonHandler.instance().getMinecraftServerInstance().getServer().getWorld(DimReference.CONSTANT.POCKET_DIMENSION_ID); But cannot find the replacement in 1.14.4 Edited July 12, 20205 yr by Zeher_Monkey
July 12, 20205 yr `LogicalSidedProvider.INSTANCE.get(LogicalSide.SERVER)` `ServerLifecycleHooks.getCurrentServer()` If you have a world instance already, if `worldIn instanceof ServerWorld`, then `((ServerWorld) worldIn).getServer()`
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.