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