Expand protection to not just players
This commit is contained in:
1 parent
b54023ff12
commit
e181af7ac8
1 file changed
+1
-1
+1
-1
@@ -14,7 +14,7 @@ public class IgnoreContraptionRidersMixin {
|
||||
|
||||
@Inject(method = "test", at = @At("HEAD"), cancellable = true)
|
||||
private void skipRiders(LivingEntity attacker, LivingEntity target, CallbackInfoReturnable<Boolean> ci) {
|
||||
if ((target instanceof Player) && (target.getVehicle() instanceof AbstractContraptionEntity)) {
|
||||
if (target.getVehicle() instanceof AbstractContraptionEntity) {
|
||||
ci.setReturnValue(false);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user