mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-24 13:31:45 -08:00
Fixed save loading error with certain data patches
This commit is contained in:
parent
9db792ccc9
commit
281115a3ab
1 changed files with 3 additions and 0 deletions
|
|
@ -69,6 +69,8 @@ public class DataPatcher{
|
|||
contentLoader = Vars.content.copy();
|
||||
patches.clear();
|
||||
|
||||
Log.info(patchArray.toString("\n"));
|
||||
|
||||
for(String patch : patchArray){
|
||||
PatchSet set = new PatchSet(patch, new JsonValue("error"));
|
||||
patches.add(set);
|
||||
|
|
@ -377,6 +379,7 @@ public class DataPatcher{
|
|||
});
|
||||
|
||||
try{
|
||||
bl.hasPower = false; //if a block doesn't have a power consumer, hasPower should be false. if it does, it will get set to true in reinitializeConsumers
|
||||
parser.readBlockConsumers(bl, jsv);
|
||||
bl.reinitializeConsumers();
|
||||
}catch(Throwable e){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue