Post tag event directly from reloader thread (#6164)

This commit is contained in:
Brennan Ward authored and LexManos committed 2019-09-17 14:39:36 -07:00
1 parent 71a4828809
commit af8074cc39
3 files changed
+5 -2

No files matched your search

@@ -104,7 +104,7 @@ public class ForgeInternalHandler
}
@SubscribeEvent
public void tagsUpdated(TagsUpdatedEvent event)
public synchronized void tagsUpdated(TagsUpdatedEvent event)
{
ForgeHooks.updateBurns();
}
@@ -25,6 +25,9 @@ import net.minecraftforge.eventbus.api.Event;
/**
* Fired on the client when {@link NetworkTagManager} has all of its tags synced from the server to the client (just after a client has connected).
* Fired on the server when {@link NetworkTagManager} has read all tags from disk (during a data reload).
* This event is fired on the {@link MinecraftForge#EVENT_BUS}
* On the client, this event fires on the Client Thread.
* On the server, this event may be fired on the Server Thread, or an async reloader thread.
*/
public class TagsUpdatedEvent extends Event
{