diff options
author | Dico <dico.karssiens@gmail.com> | 2014-07-17 05:40:54 +0200 |
---|---|---|
committer | Dico <dico.karssiens@gmail.com> | 2014-07-17 05:40:54 +0200 |
commit | 2c1c6928a975b7a6845dcc06adfec121fe24446a (patch) | |
tree | 170be885634128aba963d88c3f3ae8da3850e558 /forcefield.py | |
parent | 760d2a4d1679de907178575bc957b18a0853c340 (diff) |
removing feature which doesnt work and is stupid
Diffstat (limited to 'forcefield.py')
-rw-r--r-- | forcefield.py | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/forcefield.py b/forcefield.py index a22ab7b..7a48931 100644 --- a/forcefield.py +++ b/forcefield.py @@ -140,18 +140,7 @@ def on_move(event): entity_id = str(entity.getUniqueId()) if is_player(entity) and is_creative(entity) and (entity_id in ff_users) and not (player_id in whitelists.get(entity_id, [])): #if not whitelists[entity_id], check in blank list e.g. False - evloc = event.getFrom() - enloc = entity.getLocation() - dx = evloc.getX() - enloc.getX() - if dx < -fd or dx > fd: - dy = evloc.getY() - enloc.getY() - if dy < -fd or dy > fd: - dz = evloc.getZ() - enloc.getZ() # This is more efficient. - if dz < -fd or dz > fd: - event.setCancelled(True) - msg(player, "&cYou can't get closer than %sm to %s due to their forcefield." % (fd, stripcolors(entity.getDisplayName()))) - if not event.isCancelled(): - set_velocity_away(entity, player) + set_velocity_away(entity, player) def set_velocity_away(player, entity): #Moves entity away from player |