Skip to content

Instantly share code, notes, and snippets.

@psxlover
Created June 7, 2012 17:38
Show Gist options
  • Save psxlover/2890250 to your computer and use it in GitHub Desktop.
Save psxlover/2890250 to your computer and use it in GitHub Desktop.
this is run first:
public void registerAnimation(Minecraft var1)
{
ModLoader.addAnimation(new FXAnimatedTexture("/thaumcraft/resources/tcubeanim.png", visCubeFX, 1));
ModLoader.addAnimation(new FXAnimatedTexture("/thaumcraft/resources/tcrucibleanim.png", visDripFX, 1));
ModLoader.addAnimation(new FXAnimatedTexture("/thaumcraft/resources/speedupgrade.png", spdUpgrade, 1));
ModLoader.addAnimation(new TextureVoidCompassFX(var1));
}
not that visCubeFX, visDripFX, spdUpgrade haven't been initialized so they are 0
then load() is run which has:
spdUpgrade = 252;
visCubeFX = 253;
visDripFX = 254;
when loading a world registerAnimation is being run again with the fields having values (from the load) but for whatever reason the third animation is used in all three "addAnimation" calls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment