Skip to content

Commit 132c563

Browse files
committed
Fix handler docs in world plugin
1 parent 539c9bd commit 132c563

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

spockbot/plugins/helpers/world.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,22 +46,22 @@ def __init__(self, ploader, settings):
4646
self.world = WorldData()
4747
ploader.provides('World', self.world)
4848

49-
# Time Update - Update World Time
5049
def handle_time_update(self, name, packet):
50+
"""Time Update - Update World Time"""
5151
self.world.update_time(packet.data)
5252
self.event.emit('world_time_update', packet.data)
5353

54-
# Join Game/Respawn - New Dimension
5554
def handle_new_dimension(self, name, packet):
55+
"""Join Game/Respawn - New Dimension"""
5656
self.world.new_dimension(packet.data['dimension'])
5757
self.event.emit('world_new_dimension', packet.data['dimension'])
5858

59-
# Chunk Data - Update World state
6059
def handle_chunk_data(self, name, packet):
60+
"""Chunk Data - Update World state"""
6161
self.world.unpack_column(packet.data)
6262

63-
# Multi Block Change - Update multiple blocks
6463
def handle_multi_block_change(self, name, packet):
64+
"""Multi Block Change - Update multiple blocks"""
6565
chunk_x = packet.data['chunk_x'] * 16
6666
chunk_z = packet.data['chunk_z'] * 16
6767
for block in packet.data['blocks']:
@@ -78,15 +78,15 @@ def handle_multi_block_change(self, name, packet):
7878
'block_data': block['block_data'],
7979
})
8080

81-
# Block Change - Update a single block
8281
def handle_block_change(self, name, packet):
82+
"""Block Change - Update a single block"""
8383
p = packet.data['location']
8484
block_data = packet.data['block_data']
8585
self.world.set_block(p['x'], p['y'], p['z'], data=block_data)
8686
self.event.emit('world_block_update', packet.data)
8787

88-
# Map Chunk Bulk - Update World state
8988
def handle_map_chunk_bulk(self, name, packet):
89+
"""Map Chunk Bulk - Update World state"""
9090
self.world.unpack_bulk(packet.data)
9191

9292
def handle_disconnect(self, name, data):

0 commit comments

Comments
 (0)