Add function for faking blocks while pathing
This commit is contained in:
@@ -81,10 +81,8 @@ class GatherSandStates:
|
||||
p = utils.pint(self.g.pos)
|
||||
c = self.g.chunks
|
||||
|
||||
tmp = c.get_block_at(*self.sand)
|
||||
c.set_block_at(*self.sand, blocks.AIR)
|
||||
navpath = w.path_to_place(p, self.sand)
|
||||
c.set_block_at(*self.sand, tmp)
|
||||
navpath = w.path_to_place_faked(p, self.sand)
|
||||
print('navpath:', navpath)
|
||||
|
||||
if navpath:
|
||||
self.g.path = navpath[:-1]
|
||||
|
||||
Reference in New Issue
Block a user