mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-06-28 07:29:09 +02:00
34 lines
917 B
Java
34 lines
917 B
Java
/*
|
|
* This file ("WorldLoadingEvents.java") is part of the Actually Additions Mod for Minecraft.
|
|
* It is created and owned by Ellpeck and distributed
|
|
* under the Actually Additions License to be found at
|
|
* http://ellpeck.de/actaddlicense/
|
|
* View the source code at https://github.com/Ellpeck/ActuallyAdditions
|
|
*
|
|
* © 2016 Ellpeck
|
|
*/
|
|
|
|
package de.ellpeck.actuallyadditions.mod.event;
|
|
|
|
import de.ellpeck.actuallyadditions.mod.misc.WorldData;
|
|
import net.minecraftforge.event.world.WorldEvent;
|
|
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
|
|
|
|
public class WorldLoadingEvents{
|
|
|
|
@SubscribeEvent
|
|
public void onLoad(WorldEvent.Load event){
|
|
WorldData.makeDirty();
|
|
}
|
|
|
|
@SubscribeEvent
|
|
public void onUnload(WorldEvent.Unload event){
|
|
WorldData.makeDirty();
|
|
}
|
|
|
|
@SubscribeEvent
|
|
public void onSave(WorldEvent.Save event){
|
|
WorldData.makeDirty();
|
|
}
|
|
}
|