Skip to content

Commit 2bce26e

Browse files
committed
Fix pep8 and test
1 parent 26e7966 commit 2bce26e

File tree

2 files changed

+1
-1
lines changed

2 files changed

+1
-1
lines changed

spockbot/plugins/helpers/interact.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
This can be disabled by setting the ``auto_swing`` and ``auto_look`` flags.
1313
"""
1414
import math
15+
1516
from spockbot.mcdata import constants
1617
from spockbot.mcp import nbt
1718
from spockbot.mcp.proto import MC_SLOT

tests/plugins/helpers/test_interact.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,6 @@ def test_entity(self):
122122
self.assertAlmostEqual(ClientInfoMock.position.pitch, 0)
123123
self.assertEqual(NetMock.datas[-1].action, constants.INTERACT_ENTITY)
124124
self.assertEqual(NetMock.datas[-1].target, 234)
125-
self.assertEqual(len(NetMock.datas), 1)
126125

127126
# attack entity should swing arm
128127
entity = DataDict(eid=235, x=2, y=2 + constants.PLAYER_EYE_HEIGHT, z=4)

0 commit comments

Comments
 (0)