Skip to content

Commit

Permalink
Shorten long line
Browse files Browse the repository at this point in the history
  • Loading branch information
Gjum committed Feb 1, 2016
1 parent a5f092b commit 92b4149
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions spockbot/plugins/helpers/world.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,12 @@ def handle_multi_block_change(self, name, packet):

def handle_block_change(self, name, packet):
"""Block Change - Update a single block"""
p = packet.data['location']
pos = packet.data['location']
block_data = packet.data['block_data']
old_data = self.world.set_block(p['x'], p['y'], p['z'], data=block_data)
old_data = self.world.set_block(pos['x'], pos['y'], pos['z'],
data=block_data)
self.event.emit('world_block_update', {
'location': p,
'location': pos,
'block_data': block_data,
'old_data': old_data,
})
Expand Down

0 comments on commit 92b4149

Please sign in to comment.