@Shadow private IChunkProvider serverChunkGenerator;
@Shadow private List<Chunk> loadedChunks;
@Shadow private WorldServer worldObj;
@Redirect(method = "dropChunk", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/WorldProvider;canRespawnHere()Z"))
private boolean onCanRespawnHere(WorldProvider provider) {
<BUG>return provider.canRespawnHere() && VanillaDimensionManager.shouldLoadSpawn(provider.getDimensionId());
</BUG>
}
@Inject(method = "unloadQueuedChunks", at = @At(value = "INVOKE_ASSIGN", target = "Ljava/util/List;remove(Ljava/lang/Object;)Z", remap = false),
cancellable = true)

@Shadow private IChunkProvider serverChunkGenerator;
@Shadow private List<Chunk> loadedChunks;
@Shadow private WorldServer worldObj;
@Redirect(method = "dropChunk", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/WorldProvider;canRespawnHere()Z"))
private boolean onCanRespawnHere(WorldProvider provider) {
return provider.canRespawnHere() && VanillaDimensionManager.shouldLoadSpawn(provider.getDimensionType().getId());
}
@Inject(method = "unloadQueuedChunks", at = @At(value = "INVOKE_ASSIGN", target = "Ljava/util/List;remove(Ljava/lang/Object;)Z", remap = false),
cancellable = true)
