Fixed logic IDs not loading / Accelerator animation tweaks

This commit is contained in:
Anuken
2025-02-08 16:04:04 -05:00
parent f8b6600fe7
commit ebaf88e80d
3 changed files with 21 additions and 6 deletions

View File

@@ -140,7 +140,7 @@ public class ImagePacker{
Seq<UnlockableContent> lookupCont = new Seq<>();
for(ContentType t : GlobalVars.lookableContent){
for(ContentType t : GlobalVars.writableLookableContent){
lookupCont.addAll(Vars.content.<UnlockableContent>getBy(t).select(UnlockableContent::logicVisible));
}
@@ -154,7 +154,7 @@ public class ImagePacker{
if(logicidfile.exists()){
try(DataInputStream in = new DataInputStream(logicidfile.readByteStream())){
for(ContentType ctype : GlobalVars.lookableContent){
for(ContentType ctype : GlobalVars.writableLookableContent){
short amount = in.readShort();
for(int i = 0; i < amount; i++){
String name = in.readUTF();
@@ -189,7 +189,7 @@ public class ImagePacker{
//write the resulting IDs
try(DataOutputStream out = new DataOutputStream(logicidfile.write(false, 2048))){
for(ContentType t : GlobalVars.lookableContent){
for(ContentType t : GlobalVars.writableLookableContent){
Seq<UnlockableContent> all = idToContent[t.ordinal()].values().toArray().sort(u -> registered[t.ordinal()].get(u));
out.writeShort(all.size);
for(UnlockableContent u : all){