fixing editing oopsies

This commit is contained in:
Ghoulboy authored and GitHub committed 2021-03-02 18:29:55 +01:00
1 parent 41186c1da3
commit 356f3e94d6
1 file changed
+3 -3
@@ -89,7 +89,7 @@ global_functions = {
); );
[x,y,z] = pos(e); [x,y,z] = pos(e);
current_id = e~'id'; current_id = e~'id';
buddies = entity_area('villager', x, y+height/2, z, 10+half_width, 10+height/2, 10+half_width); buddies = entity_area('villager', e, 10, 10, 10);
nb = length(buddies); nb = length(buddies);
for (filter(buddies, _~'id' != current_id), for (filter(buddies, _~'id' != current_id),
visuals+=['line', global_duration, 'from', pos(e), 'to', pos(_), 'color', 0xffff00ff]; visuals+=['line', global_duration, 'from', pos(e), 'to', pos(_), 'color', 0xffff00ff];
@@ -348,7 +348,7 @@ __config() ->{
'toggle villager <villager_display>'->_(d)->__toggle('villager_'+d,null), 'toggle villager <villager_display>'->_(d)->__toggle('villager_'+d,null),
'toggle villager hostile_detection <hostile>'->_(h)->__toggle('villager_hostile_detection',h), 'toggle villager hostile_detection <hostile>'->_(h)->__toggle('villager_hostile_detection',h),
'update_frequency <ticks>'->_(ticks)->(global_interval = ticks;global_duration = ticks + 2), 'update_frequency <ticks>'->_(ticks)->(global_interval = ticks;global_duration = ticks + 2),
'transparency <alpha>'->_(alpha)->global_opacity = floor(alpha) 'transparency <alpha>'->_(alpha)->global_opacity = alpha
}, },
'arguments'->{ 'arguments'->{
'display'->{'type'->'term','options'->['item_pickup','velocity','portal_cooldown','health','pathfinding','xpstack']}, 'display'->{'type'->'term','options'->['item_pickup','velocity','portal_cooldown','health','pathfinding','xpstack']},
@@ -496,7 +496,7 @@ __tick_tracker() ->
p = player(); p = player();
[px, py, pz] = pos(p); [px, py, pz] = pos(p);
in_dimension(p, in_dimension(p,
for (entity_area('valid', px, py, pz, global_range, global_range, global_range), for (entity_area('valid', p, global_range, global_range, global_range),
__handle_entity(_) __handle_entity(_)
) )
); );