Select a log to avoid using tools

This commit is contained in:
2021-02-15 08:27:56 +00:00
parent 3c3287a1d5
commit f65967342a
2 changed files with 19 additions and 3 deletions
+6 -3
View File
@@ -5,8 +5,6 @@ import random
from itertools import count
from math import hypot
from panda3d.core import LPoint3f
from minecraft.networking.types import BlockFace
from protocol.managers import ChunkNotLoadedException
@@ -1301,9 +1299,14 @@ class ClearLeavesStates:
self.state = self.cleanup
return
self.state = self.find_leaves
self.state = self.select_log
print('Clearing leaves...')
def select_log(self):
# select a log to avoid using tools
self.g.game.select_item(items.LOG_IDS)
self.state = self.find_leaves
def find_leaves(self):
w = self.g.world
p = utils.pint(self.g.pos)