0.16.5-hotfix1

This commit is contained in:
sainagh
2024-10-22 15:32:10 -07:00
parent 6a6a0ba4f0
commit 9a9983c59a
5001 changed files with 257651 additions and 10123 deletions
+29
View File
@@ -0,0 +1,29 @@
#loader mixin
import native.net.minecraftforge.event.entity.living.LivingDeathEvent;
import mixin.CallbackInfo;
import native.mustapelto.deepmoblearning.common.events.EntityDeathEventHandler;
/*
Fix random crashes related to modifying UUID blacklist concurrently.
Here until floppaxd/DeepMobEvolution#65 is merged.
Created by ChaosStrikez for Deep Mob Evolution 1.2.2.
*/
#mixin Mixin
#{targets: "mustapelto.deepmoblearning.common.events.EntityDeathEventHandler"}
zenClass MixinEntityDeathEventHandler {
#mixin Static
#mixin Inject
#{
# method: "entityDeath",
# at: {value: "HEAD"},
# cancellable: true
#}
function mbc_checkSide(event as LivingDeathEvent, ci as CallbackInfo) as void {
if (event.getEntityLiving().world.isRemote) {
ci.cancel();
}
}
}