Fix FactoredEntityShowMode for -tick option
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
Ursprung
6903a0b04e
Commit
95c8af91e4
@ -57,7 +57,7 @@ public abstract class FactoredEntityShowMode implements ShowMode<TNTPosition> {
|
||||
}
|
||||
RoundedPosition roundedPosition = new RoundedPosition(position, factor);
|
||||
AbstractTraceEntity entity = tntEntityMap.computeIfAbsent(roundedPosition, pos -> createEntity(player, position.getLocation(), true));
|
||||
entity.display(player, position.isExploded(), showModeParameter.isTicks() ? position.getFuseTicks() : 0);
|
||||
entity.display(player, position.isExploded(), showModeParameter.isTicks() ? position.getFuseTicks() : -1);
|
||||
return;
|
||||
}
|
||||
if (!showModeParameter.isWater() && position.isExploded() && checkWater(position.getLocation())) {
|
||||
@ -81,12 +81,12 @@ public abstract class FactoredEntityShowMode implements ShowMode<TNTPosition> {
|
||||
|
||||
RoundedPosition roundedPosition = new RoundedPosition(position, factor);
|
||||
AbstractTraceEntity entity = tntEntityMap.computeIfAbsent(roundedPosition, pos -> createEntity(player, position.getLocation(), true));
|
||||
entity.display(player, position.isExploded(), showModeParameter.isTicks() ? position.getFuseTicks() : 0);
|
||||
entity.display(player, position.isExploded(), showModeParameter.isTicks() ? position.getFuseTicks() : -1);
|
||||
|
||||
applyOnPosition(position, updatePointPosition -> {
|
||||
updateEntityMap.computeIfAbsent(new RoundedPosition(updatePointPosition, factor), pos -> {
|
||||
return createEntity(player, updatePointPosition, false);
|
||||
}).display(player, false, showModeParameter.isTicks() ? position.getFuseTicks() : 0);
|
||||
}).display(player, false, showModeParameter.isTicks() ? position.getFuseTicks() : -1);
|
||||
});
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren