Upgrade pyCraft

This commit is contained in:
2020-09-17 18:56:52 -06:00
parent ca45925da1
commit b8cbd9a5f0
4 changed files with 9 additions and 2 deletions
+5 -1
View File
@@ -7,6 +7,7 @@ from itertools import count
from panda3d.core import LPoint3f
from minecraft.networking.packets import Packet, clientbound, serverbound
from minecraft.networking.types import BlockFace
from protocol.packets import TimeUpdatePacket, SetSlotPacket, PlayerDiggingPacket, BlockBreakAnimationPacket, AcknowledgePlayerDiggingPacket, HeldItemChangePacket, PickItemPacket
@@ -261,7 +262,7 @@ class Game:
raise
if command == 'break':
self.break_block((616, 78, 496))
self.break_block(blocks.TEST_BLOCK)
reply = 'ok'
if command == 'gather' and data:
@@ -312,6 +313,9 @@ class Game:
else:
reply = 'not found'
if command == 'open':
self.place_block(blocks.TEST_BLOCK, BlockFace.TOP)
if reply:
print(reply)
self.g.chat.send(reply)