mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-27 23:14:23 -04:00
adjusted event handler for 1.7
This commit is contained in:
parent
f448cbbf57
commit
c887317622
@ -1,12 +1,12 @@
|
||||
package li.cil.oc.common
|
||||
|
||||
import cpw.mods.fml.common.eventhandler.SubscribeEvent
|
||||
import java.io
|
||||
import java.util.logging.Level
|
||||
import li.cil.oc.{OpenComputers, Settings}
|
||||
import net.minecraft.nbt.NBTTagCompound
|
||||
import net.minecraft.world.ChunkCoordIntPair
|
||||
import net.minecraftforge.common.DimensionManager
|
||||
import net.minecraftforge.event.ForgeSubscribe
|
||||
import net.minecraftforge.event.world.WorldEvent
|
||||
import scala.collection.mutable
|
||||
|
||||
@ -55,7 +55,7 @@ object SaveHandler {
|
||||
// Used by the native lua state to store kernel and stack data in auxiliary
|
||||
// files instead of directly in the tile entity data, avoiding potential
|
||||
// problems with the tile entity data becoming too large.
|
||||
@ForgeSubscribe
|
||||
@SubscribeEvent
|
||||
def onWorldSave(e: WorldEvent.Save) = saveData.synchronized {
|
||||
val path = savePath
|
||||
path.mkdirs()
|
||||
|
Loading…
x
Reference in New Issue
Block a user