From 546ce7cfb25ece32e66600aeb613a5fb7e05cf2e Mon Sep 17 00:00:00 2001 From: Dico Date: Thu, 17 Jul 2014 05:10:24 +0200 Subject: [PATCH] Another minor change --- forcefield.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/forcefield.py b/forcefield.py index 480cdd5..394f413 100644 --- a/forcefield.py +++ b/forcefield.py @@ -129,7 +129,7 @@ def on_move(event): player_id = str(player.getUniqueId()) if player_id in ff_users: # player has forcefield, entity should be blocked for entity in player.getNearbyEntities(fd, fd, fd): - if is_player(entity) and is_creative(entity) and not entity.hasPermission(ff_perms[1]) and not (player_id in whitelists.get(str(entity.getUniqueId()), [])): + if is_player(entity) and is_creative(entity) and not entity.hasPermission(ff_perms[1]) and not (str(entity.getUniqueId() in whitelists.get(player_id, []))): #if not whitelists[entity_id], check in blank list e.g. False set_velocity_away(player, entity)