|
43 | 43 | import micdoodle8.mods.galacticraft.core.util.GCCoreUtil; |
44 | 44 | import micdoodle8.mods.galacticraft.core.util.OxygenUtil; |
45 | 45 | import micdoodle8.mods.galacticraft.core.util.PlayerUtil; |
46 | | -import micdoodle8.mods.galacticraft.core.world.ChunkLoadingCallback; |
47 | 46 | import micdoodle8.mods.galacticraft.core.wrappers.PlayerGearData; |
48 | 47 | import micdoodle8.mods.galacticraft.planets.asteroids.AsteroidsModule; |
49 | 48 | import micdoodle8.mods.galacticraft.planets.mars.network.PacketSimpleMars; |
|
103 | 102 | import net.minecraftforge.event.terraingen.PopulateChunkEvent; |
104 | 103 | import net.minecraftforge.event.terraingen.TerrainGen; |
105 | 104 | import net.minecraftforge.event.world.BlockEvent; |
106 | | -import net.minecraftforge.event.world.ChunkDataEvent; |
107 | | -import net.minecraftforge.event.world.ChunkEvent.Load; |
108 | | -import net.minecraftforge.event.world.WorldEvent.Save; |
109 | 105 | import net.minecraftforge.fml.client.FMLClientHandler; |
110 | 106 | import net.minecraftforge.fml.client.event.ConfigChangedEvent; |
111 | 107 | import net.minecraftforge.fml.common.eventhandler.Event; |
@@ -144,26 +140,26 @@ public void onPortalSpawn(BlockEvent.PortalSpawnEvent event) |
144 | 140 | } |
145 | 141 | } |
146 | 142 |
|
147 | | - @SubscribeEvent |
148 | | - public void onWorldSave(Save event) |
149 | | - { |
150 | | - ChunkLoadingCallback.save((WorldServer) event.getWorld()); |
151 | | - } |
152 | | - |
153 | | - @SubscribeEvent |
154 | | - public void onChunkDataLoad(ChunkDataEvent.Load event) |
155 | | - { |
156 | | - ChunkLoadingCallback.load((WorldServer) event.getWorld()); |
157 | | - } |
158 | | - |
159 | | - @SubscribeEvent |
160 | | - public void onWorldLoad(Load event) |
161 | | - { |
162 | | - if (!event.getWorld().isRemote) |
163 | | - { |
164 | | - ChunkLoadingCallback.load((WorldServer) event.getWorld()); |
165 | | - } |
166 | | - } |
| 143 | + // @SubscribeEvent(priority = EventPriority.LOWEST) |
| 144 | + // public void onWorldSave(Save event) |
| 145 | + // { |
| 146 | + // ChunkLoadingCallback.save((WorldServer) event.getWorld()); |
| 147 | + // } |
| 148 | + // |
| 149 | + // @SubscribeEvent(priority = EventPriority.LOWEST) |
| 150 | + // public void onChunkDataLoad(ChunkDataEvent.Load event) |
| 151 | + // { |
| 152 | + // ChunkLoadingCallback.load((WorldServer) event.getWorld()); |
| 153 | + // } |
| 154 | + // |
| 155 | + // @SubscribeEvent(priority = EventPriority.LOWEST) |
| 156 | + // public void onWorldLoad(Load event) |
| 157 | + // { |
| 158 | + // if (!event.getWorld().isRemote) |
| 159 | + // { |
| 160 | + // ChunkLoadingCallback.load((WorldServer) event.getWorld()); |
| 161 | + // } |
| 162 | + // } |
167 | 163 |
|
168 | 164 | @SubscribeEvent |
169 | 165 | public void onEntityDamaged(LivingHurtEvent event) |
|
0 commit comments