调整反坦克地雷的触发上限

This commit is contained in:
Atsuishio 2025-06-07 23:52:40 +08:00 committed by Light_Quanta
parent 254cdf32b2
commit 495df30bec
No known key found for this signature in database
GPG key ID: 11A39A1B8C890959

View file

@ -212,7 +212,7 @@ public class Tm62Entity extends Entity implements GeoEntity, OwnableEntity {
var frontBox = getBoundingBox().inflate(0.2); var frontBox = getBoundingBox().inflate(0.2);
boolean trigger = false; boolean trigger = false;
var entities = level().getEntities(EntityTypeTest.forClass(Entity.class), frontBox, entity -> entity != this && !(entity instanceof HangingEntity) && (entity.getBoundingBox().getSize() > 1.2 || (entity.getBoundingBox().getSize() > 0.9 && entity.getDeltaMovement().y() < -0.35))).stream().toList(); var entities = level().getEntities(EntityTypeTest.forClass(Entity.class), frontBox, entity -> entity != this && !(entity instanceof HangingEntity) && (entity.getBoundingBox().getSize() > 1.5 || (entity.getBoundingBox().getSize() > 0.9 && entity.getDeltaMovement().y() < -0.35))).stream().toList();
for (var entity : entities) { for (var entity : entities) {
if (entity != null) { if (entity != null) {