Bassebombecraft

Bassebombecraft

18.5k Downloads

Server fails to start with exception: Attempted to load class net/minecraft/client/renderer/Vector4f for invalid dist DEDICATED_SERVER

athrane opened this issue ยท 2 comments

commented

Stacktrace:

java.lang.BootstrapMethodError: java.lang.RuntimeException: Attempted to load class net/minecraft/client/renderer/Vector4f for invalid dist DEDICATED_SERVER

at bassebombecraft.operator.DefaultPorts.<clinit>(DefaultPorts.java:255) ~[?:1.15.2-1.50] {re:classloading}

at bassebombecraft.operator.client.rendering.AddGraphicalEffectAtClient2.<init>(AddGraphicalEffectAtClient2.java:76) ~[?:1.15.2-1.50] {re:classloading}

at bassebombecraft.entity.projectile.GenericCompositeProjectileEntity.<clinit>(GenericCompositeProjectileEntity.java:86) ~[?:1.15.2-1.50] {re:classloading,pl:runtimedistcleaner:A}

at bassebombecraft.config.ModConfiguration.setupEntitiesConfig(ModConfiguration.java:2507) ~[?:1.15.2-1.50] {re:classloading}

at bassebombecraft.config.ModConfiguration.<clinit>(ModConfiguration.java:815) ~[?:1.15.2-1.50] {re:classloading}

at bassebombecraft.entity.commander.command.AttackNearestMobCommand.<init>(AttackNearestMobCommand.java:50) ~[?:1.15.2-1.50] {re:classloading}

at bassebombecraft.entity.commander.DefaultMobCommanderRepository.<clinit>(DefaultMobCommanderRepository.java:23) ~[?:1.15.2-1.50] {re:classloading}

at bassebombecraft.proxy.ServerProxy.<init>(ServerProxy.java:122) ~[?:1.15.2-1.50] {re:classloading}

at bassebombecraft.BassebombeCraft.lambda$null$2(BassebombeCraft.java:59) ~[?:1.15.2-1.50] {re:classloading,pl:eventbus:A}

at net.minecraftforge.fml.DistExecutor.runForDist(DistExecutor.java:65) ~[?:?] {re:classloading}

at bassebombecraft.BassebombeCraft.<clinit>(BassebombeCraft.java:59) ~[?:1.15.2-1.50] {re:classloading,pl:eventbus:A}
commented

Solution: Remove client side class Vector4f from ports. And introduce Color4f instead which is both client and server side.

commented

RWC: 4dd21ad