Fix matter registry gets invalidated on second join in singleplayer

This commit is contained in:
DBotThePony 2021-08-18 00:20:16 +07:00
parent 49a6d3a3e2
commit 4c6e10ac53
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -452,8 +452,15 @@ public class MatterRegistry {
}
}
private static boolean started_once = false;
@SubscribeEvent
public static void serverStarted(FMLServerStartedEvent event) {
if (started_once)
return;
started_once = true;
ITEMS.clear();
usages.clear();
results.clear();