This commit is contained in:
Anuken
2025-12-21 00:00:13 -05:00
parent 012eeabc87
commit 6c3b6aeea5
2 changed files with 10 additions and 8 deletions

View File

@@ -129,6 +129,13 @@ public class DataPatcher{
}
void created(Object object, Object parent){
if(object instanceof Weapon weapon){
weapon.init();
}else if(object instanceof Content cont){
cont.init();
cont.postInit();
}
if(!Vars.headless){
if(object instanceof DrawPart part && parent instanceof MappableContent cont){
part.load(cont.name);
@@ -138,16 +145,9 @@ public class DataPatcher{
draw.load(block);
}else if(object instanceof Weapon weapon){
weapon.load();
weapon.init();
}else if(object instanceof Content cont){
cont.init();
cont.postInit();
cont.load();
}
}else{
if(object instanceof Weapon weapon){
weapon.init();
}
}
}