mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-23 21:38:00 +01:00
Fixed crash when taking damage
This commit is contained in:
parent
f278bdb1ae
commit
ee0a3df549
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ abstract class MixinDamageSource {
|
|||
|
||||
@Mixin(FallLocation.class)
|
||||
abstract class MixinFallLocation {
|
||||
@Inject(method = "fromEntity", at = @At("RETURN"))
|
||||
@Inject(method = "fromEntity", at = @At("RETURN"), cancellable = true)
|
||||
private static void onFromEntity(LivingEntity entity, CallbackInfoReturnable<FallLocation> info) {
|
||||
FallLocation location = info.getReturnValue();
|
||||
if (location == null) {
|
||||
|
|
Loading…
Reference in a new issue