mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-12-23 03:49:22 +01:00
Revert that, as it doesn't change anything
This commit is contained in:
parent
6fd36259fc
commit
193bd806a3
2 changed files with 4 additions and 12 deletions
|
@ -126,7 +126,7 @@ public class WorldData{
|
|||
}
|
||||
}
|
||||
|
||||
public static void save(World world, boolean doMessage){
|
||||
public static void save(World world){
|
||||
if(!world.isRemote){
|
||||
WorldData data = worldData.get(world.provider.getDimension());
|
||||
if(data != null && data.handler != null){
|
||||
|
@ -145,9 +145,7 @@ public class WorldData{
|
|||
CompressedStreamTools.writeCompressed(compound, stream);
|
||||
stream.close();
|
||||
|
||||
if(doMessage){
|
||||
ModUtil.LOGGER.info("Saved WorldData for world "+data.dimension+"!");
|
||||
}
|
||||
ModUtil.LOGGER.info("Saved WorldData for world "+data.dimension+"!");
|
||||
}
|
||||
}
|
||||
catch(Exception e){
|
||||
|
@ -162,7 +160,7 @@ public class WorldData{
|
|||
|
||||
public static void unload(World world){
|
||||
if(!world.isRemote){
|
||||
save(world, true);
|
||||
save(world);
|
||||
|
||||
worldData.remove(world.provider.getDimension());
|
||||
ModUtil.LOGGER.info("Unloading WorldData for world "+world.provider.getDimension()+"!");
|
||||
|
|
|
@ -12,7 +12,6 @@ package de.ellpeck.actuallyadditions.mod.event;
|
|||
|
||||
import de.ellpeck.actuallyadditions.mod.data.WorldData;
|
||||
import de.ellpeck.actuallyadditions.mod.util.FakePlayerUtil;
|
||||
import net.minecraftforge.event.world.ChunkDataEvent;
|
||||
import net.minecraftforge.event.world.WorldEvent;
|
||||
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
||||
|
||||
|
@ -31,12 +30,7 @@ public class WorldLoadingEvents{
|
|||
|
||||
@SubscribeEvent
|
||||
public void onSave(WorldEvent.Save event){
|
||||
WorldData.save(event.getWorld(), true);
|
||||
}
|
||||
|
||||
@SubscribeEvent
|
||||
public void onChunkUnload(ChunkDataEvent.Save event){
|
||||
WorldData.save(event.getWorld(), false);
|
||||
WorldData.save(event.getWorld());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue