Bassebombecraft

Bassebombecraft

18.5k Downloads

Contagion projectile modifier item fails with UndefinedOperatorInputException in CloneEffect2 operator

athrane opened this issue ยท 2 comments

commented

Stack trace:

[20Sep2021 16:39:25.933] [Server thread/ERROR] [bassebombecraft.BassebombeCraft/]: bassebombecraft.operator.UndefinedOperatorInputException: bassebombecraft.operator.DefaultPorts$$Lambda$3107/2058661465@69be70e
	at bassebombecraft.operator.Operators2.validateNotNull(Operators2.java:64)
	at bassebombecraft.operator.Operators2.applyV(Operators2.java:81)
	at bassebombecraft.operator.entity.potion.effect.CloneEffect2.run(CloneEffect2.java:63)
	at bassebombecraft.operator.Operators2.run(Operators2.java:20)
	at bassebombecraft.operator.Operators2.run(Operators2.java:39)
	at bassebombecraft.operator.Sequence2.run(Sequence2.java:71)
	at bassebombecraft.operator.Operators2.run(Operators2.java:20)
	at bassebombecraft.operator.LazyInitOp2.run(LazyInitOp2.java:52)
	at bassebombecraft.operator.Operators2.run(Operators2.java:20)
	at bassebombecraft.operator.entity.ApplyOperatorToEntity2.run(ApplyOperatorToEntity2.java:73)
	at bassebombecraft.operator.Operators2.run(Operators2.java:20)
	at bassebombecraft.operator.Operators2.run(Operators2.java:39)
	at bassebombecraft.operator.Sequence2.run(Sequence2.java:71)
	at bassebombecraft.operator.Operators2.run(Operators2.java:20)
	at bassebombecraft.operator.entity.Contagion2.run(Contagion2.java:140)
	at bassebombecraft.operator.Operators2.run(Operators2.java:20)
	at bassebombecraft.entity.projectile.GenericCompositeProjectileEntity.contagion(GenericCompositeProjectileEntity.java:577)
	at bassebombecraft.entity.projectile.GenericCompositeProjectileEntity.processCompositeModifiers(GenericCompositeProjectileEntity.java:468)
	at bassebombecraft.entity.projectile.GenericCompositeProjectileEntity.tick(GenericCompositeProjectileEntity.java:315)
	at net.minecraft.world.server.ServerWorld.updateEntity(ServerWorld.java:623)
	at net.minecraft.world.World.guardEntityTick(World.java:601)
	at net.minecraft.world.server.ServerWorld.tick(ServerWorld.java:407)
	at net.minecraft.server.MinecraftServer.updateTimeLightAndEntities(MinecraftServer.java:885)
	at net.minecraft.server.MinecraftServer.tick(MinecraftServer.java:821)
	at net.minecraft.server.integrated.IntegratedServer.tick(IntegratedServer.java:84)
	at net.minecraft.server.MinecraftServer.func_240802_v_(MinecraftServer.java:664)
	at net.minecraft.server.MinecraftServer.lambda$startServer$0(MinecraftServer.java:233)
	at java.lang.Thread.run(Thread.java:748)

commented

The error is in line #64 which is the validation of the effect instance.

	@Override
	public void run(Ports ports) {
		LivingEntity target = applyV(fnGetTarget, ports);
		EffectInstance sourceInstance = applyV(fnGetEffectInstance, ports);

No effect instance is defined in the ports:
[20Sep2021 20:03:22.455] [Server thread/ERROR] [bassebombecraft.BassebombeCraft/]: Validation failed for function: bassebombecraft.operator.DefaultPorts$$Lambda$3103/1326230282@2381c34aPorts for the function, Result=true, Counter=0, Integer1=0, Entities1=[ChickenEntity['Chicken'/519, l='ServerLevel[New World]', x=-586.14, y=4.00, z=25.14], ChickenEntity['Chicken'/520, l='ServerLevel[New World]', x=-577.81, y=4.00, z=21.50], ChickenEntity['Chicken'/522, l='ServerLevel[New World]', x=-583.87, y=4.00, z=21.47], ChickenEntity['Chicken'/525, l='ServerLevel[New World]', x=-583.88, y=4.00, z=24.75], ChickenEntity['Chicken'/527, l='ServerLevel[New World]', x=-577.88, y=4.00, z=17.97], ChickenEntity['Chicken'/528, l='ServerLevel[New World]', x=-584.92, y=4.00, z=17.92]], Entity1=LightningProjectileEntity['entity.bassebombecraft.lightningprojectileentity'/965, l='ServerLevel[New World]', x=-582.71, y=4.44, z=20.64], Entity2=ChickenEntity['Chicken'/519, l='ServerLevel[New World]', x=-586.14, y=4.00, z=25.14]

commented

RWC: 80fcb46