Subscribe to these vents only when running client

This commit is contained in:
DBotThePony 2024-01-03 23:50:05 +07:00
parent 8f92b8d3f1
commit f36019b4ef
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -48,6 +48,7 @@ import ru.dbotthepony.mc.otm.core.math.BlockRotationFreedom
import ru.dbotthepony.mc.otm.core.math.Decimal
import ru.dbotthepony.mc.otm.core.math.RGBAColor
import ru.dbotthepony.mc.otm.data.DecimalProvider
import ru.dbotthepony.mc.otm.isClient
import ru.dbotthepony.mc.otm.item.weapon.EnergySwordItem
import ru.dbotthepony.mc.otm.matter.AbstractRegistryAction
import ru.dbotthepony.mc.otm.matter.IMatterFunction
@ -291,8 +292,8 @@ object MRegistry {
bus.addListener(this::initializeCommon)
bus.addListener(MStats::registerVanilla)
bus.addListener(this::registerEvent)
bus.addListener(this::registerItemColorHandlers)
bus.addListener(this::registerItemDecorators)
if (isClient) bus.addListener(this::registerItemColorHandlers)
if (isClient) bus.addListener(this::registerItemDecorators)
MCreativeTabs.initialize(bus)