Expand protection to not just players

This commit is contained in:
BipolarExpedition committed 2026-11-03 16:31:43 -05:00
1 parent b54023ff12
commit e181af7ac8
1 file changed
+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;
}