Another minor change

This commit is contained in:
Dico
2014-07-17 05:10:24 +02:00
parent c4a8fc9358
commit 546ce7cfb2

View File

@@ -129,7 +129,7 @@ def on_move(event):
player_id = str(player.getUniqueId()) player_id = str(player.getUniqueId())
if player_id in ff_users: # player has forcefield, entity should be blocked if player_id in ff_users: # player has forcefield, entity should be blocked
for entity in player.getNearbyEntities(fd, fd, fd): 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 #if not whitelists[entity_id], check in blank list e.g. False
set_velocity_away(player, entity) set_velocity_away(player, entity)