Select a log to avoid using tools
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user