Making portal_timer and portal_cooldown return portal timer and portal cooldown in that order (#1476)
* This error is so dumb I must have done it * Update ai_tracker.sc
This commit is contained in:
1 parent
ee4bc332e3
commit
6019f812d3
2 files changed
+5
-5
No files matched your search
@@ -523,8 +523,8 @@ public class EntityValue extends Value
|
||||
put("item", (e, a) -> (e instanceof ItemEntity)?ValueConversions.of(((ItemEntity) e).getItem()):Value.NULL);
|
||||
put("count", (e, a) -> (e instanceof ItemEntity)?new NumericValue(((ItemEntity) e).getItem().getCount()):Value.NULL);
|
||||
put("pickup_delay", (e, a) -> (e instanceof ItemEntity)?new NumericValue(((ItemEntityInterface) e).getPickupDelayCM()):Value.NULL);
|
||||
put("portal_cooldown", (e , a) ->new NumericValue(((EntityInterface)e).getPortalTimer()));
|
||||
put("portal_timer", (e , a) ->new NumericValue(((EntityInterface)e).getPublicNetherPortalCooldown()));
|
||||
put("portal_cooldown", (e , a) ->new NumericValue(((EntityInterface)e).getPublicNetherPortalCooldown()));
|
||||
put("portal_timer", (e , a) ->new NumericValue(((EntityInterface)e).getPortalTimer()));
|
||||
// ItemEntity -> despawn timer via ssGetAge
|
||||
put("is_baby", (e, a) -> (e instanceof LivingEntity)?BooleanValue.of(((LivingEntity) e).isBaby()):Value.NULL);
|
||||
put("target", (e, a) -> {
|
||||
|
||||
@@ -270,9 +270,9 @@ global_functions = {
|
||||
'portal_cooldown' -> {
|
||||
'*' -> [
|
||||
_(arg) -> _(e) -> (
|
||||
portal_timer = e~'portal_timer';
|
||||
if (portal_timer,
|
||||
[[], [], [['portal', 'portal cooldown:', portal_timer]]]
|
||||
portal_cooldown = e~'portal_cooldown';
|
||||
if (portal_cooldown,
|
||||
[[], [], [['portal', 'portal cooldown:', portal_cooldown]]]
|
||||
,
|
||||
[[], [], []]
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user