Skip to content

Commit 92b4149

Browse files
committed
Shorten long line
1 parent a5f092b commit 92b4149

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

spockbot/plugins/helpers/world.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,12 @@ def handle_multi_block_change(self, name, packet):
8686

8787
def handle_block_change(self, name, packet):
8888
"""Block Change - Update a single block"""
89-
p = packet.data['location']
89+
pos = packet.data['location']
9090
block_data = packet.data['block_data']
91-
old_data = self.world.set_block(p['x'], p['y'], p['z'], data=block_data)
91+
old_data = self.world.set_block(pos['x'], pos['y'], pos['z'],
92+
data=block_data)
9293
self.event.emit('world_block_update', {
93-
'location': p,
94+
'location': pos,
9495
'block_data': block_data,
9596
'old_data': old_data,
9697
})

0 commit comments

Comments
 (0)