This commit is contained in:
sainagh
2026-07-25 16:18:14 -05:00
parent 3533ad27ec
commit 5463fe8373
3932 changed files with 5500 additions and 211408 deletions
-25
View File
@@ -1,25 +0,0 @@
#loader mixin
import native.net.minecraft.util.math.BlockPos;
import native.net.minecraft.world.World;
import native.net.minecraft.block.state.IBlockState;
import native.forestry.api.apiculture.IBeeGenome;
import native.forestry.api.apiculture.IBeeHousing;
import mixin.CallbackInfoReturnable;
#mixin Mixin
#{targets: "com.rwtema.careerbees.effects.EffectAssassin"}
zenClass MixinAssassinBee {
#mixin Inject
#{
# method: "performPosEffect",
# at: {value: "HEAD"},
# cancellable: true
#}
function fixAssBeeCrash(world as World, blockPos as BlockPos, state as IBlockState, genome as IBeeGenome, housing as IBeeHousing, cir as CallbackInfoReturnable) as void {
if (!(world.getTileEntity(blockPos) instanceof IBeeHousing)) {
cir.setReturnValue(false);
}
}
}