fix texture atlas stitch event handlers firing in wrong order

This commit is contained in:
octarine-noise
2014-08-16 09:21:23 +02:00
parent ee50ce1dc5
commit 772b509a10

View File

@@ -19,6 +19,7 @@ import net.minecraftforge.common.MinecraftForge;
import com.google.common.collect.Sets; import com.google.common.collect.Sets;
import cpw.mods.fml.common.eventhandler.Event; import cpw.mods.fml.common.eventhandler.Event;
import cpw.mods.fml.common.eventhandler.EventPriority;
import cpw.mods.fml.common.eventhandler.SubscribeEvent; import cpw.mods.fml.common.eventhandler.SubscribeEvent;
import cpw.mods.fml.relauncher.Side; import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly; import cpw.mods.fml.relauncher.SideOnly;
@@ -62,7 +63,7 @@ public class LeafTextureEnumerator implements IIconRegister {
* their textures to "sniff out" all leaf textures. * their textures to "sniff out" all leaf textures.
* @param event * @param event
*/ */
@SubscribeEvent @SubscribeEvent(priority=EventPriority.LOWEST)
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public void handleTextureReload(TextureStitchEvent.Pre event) { public void handleTextureReload(TextureStitchEvent.Pre event) {
if (event.map.getTextureType() != 0) return; if (event.map.getTextureType() != 0) return;