mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +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)
|
@Mixin(FallLocation.class)
|
||||||
abstract class MixinFallLocation {
|
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) {
|
private static void onFromEntity(LivingEntity entity, CallbackInfoReturnable<FallLocation> info) {
|
||||||
FallLocation location = info.getReturnValue();
|
FallLocation location = info.getReturnValue();
|
||||||
if (location == null) {
|
if (location == null) {
|
||||||
|
|
Loading…
Reference in a new issue