plancraft 0.3.13__py3-none-any.whl → 0.3.14__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- plancraft/environment/env.py +3 -2
- {plancraft-0.3.13.dist-info → plancraft-0.3.14.dist-info}/METADATA +1 -1
- {plancraft-0.3.13.dist-info → plancraft-0.3.14.dist-info}/RECORD +5 -5
- {plancraft-0.3.13.dist-info → plancraft-0.3.14.dist-info}/WHEEL +0 -0
- {plancraft-0.3.13.dist-info → plancraft-0.3.14.dist-info}/licenses/LICENSE +0 -0
plancraft/environment/env.py
CHANGED
@@ -370,10 +370,11 @@ class PlancraftEnvironment:
|
|
370
370
|
if slot_from < 1 or slot_to < 1 or slot_from >= 46 or slot_to >= 46:
|
371
371
|
return
|
372
372
|
|
373
|
-
|
374
|
-
if self.slot_empty(slot_from) or item["quantity"] < quantity:
|
373
|
+
if self.slot_empty(slot_from) or self.state[slot_from]["quantity"] < quantity:
|
375
374
|
return # skip if the slot from is empty or does not have enough items
|
376
375
|
|
376
|
+
item = self.state[slot_from]
|
377
|
+
|
377
378
|
for recipe in self.smelting_recipes:
|
378
379
|
if output := recipe.smelt(item["type"]):
|
379
380
|
output_type = output.item
|
@@ -12,7 +12,7 @@ plancraft/data/val.small.easy.json,sha256=9zEmqepjXG2NIp88xnFqOCkwsUsku3HEwHoQGx
|
|
12
12
|
plancraft/data/val.small.json,sha256=76E9EFaljDQyAokg97e-IblvcOe6KbrdKkXvRxhhkgo,237653
|
13
13
|
plancraft/environment/__init__.py,sha256=XFsFny4lH195AwAmL-WeCaF9ZCMgc7IgXIwhQ8FTdgE,505
|
14
14
|
plancraft/environment/actions.py,sha256=AQxFaK4YW53mPwhuPhHrDF9wENSVjPHSWk0v77I1thw,9460
|
15
|
-
plancraft/environment/env.py,sha256=
|
15
|
+
plancraft/environment/env.py,sha256=A4532st7JFBYBF_Nh0CEEi3ZTLJAeaB3t9PAIVSemj0,16390
|
16
16
|
plancraft/environment/items.py,sha256=Z9rhSyVDEoHF1pxRvhyiT94tyQJaWHi3wUHVcamz82o,221
|
17
17
|
plancraft/environment/planner.py,sha256=eJExz3OxSzurIEdH9LOtMwFH9ApqMQ3CokVhmbV6Px0,3953
|
18
18
|
plancraft/environment/prompts.py,sha256=8QXclX0ygpL02uZichE1AVkbdn_0HGteD5bzo0FZGOU,6947
|
@@ -1920,7 +1920,7 @@ plancraft/models/generators.py,sha256=F76_iPiqxUjDIrQwF58tzM0bLM91OkZJ0sBqBuki5w
|
|
1920
1920
|
plancraft/models/oracle.py,sha256=jDCE6zVFvbwFpDzQZTkHIlRwMud1yMJ4LVIdfpt5ddU,8449
|
1921
1921
|
plancraft/models/utils.py,sha256=E-sZohvolWgGbpHQKgAgkgIfUJoVnT5pMt6JP8xLHKg,4034
|
1922
1922
|
plancraft/train/dataset.py,sha256=oFqEd4LG9oEQ-71teh0Wf7-jJbtybT2ZibfM2bBdBkM,5474
|
1923
|
-
plancraft-0.3.
|
1924
|
-
plancraft-0.3.
|
1925
|
-
plancraft-0.3.
|
1926
|
-
plancraft-0.3.
|
1923
|
+
plancraft-0.3.14.dist-info/METADATA,sha256=2LWU4DAq1vYAlcWLU_c3AAbVkqoyHWRJ6EFiMCtF2jM,11148
|
1924
|
+
plancraft-0.3.14.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
1925
|
+
plancraft-0.3.14.dist-info/licenses/LICENSE,sha256=YGR8ehDB4t-T-lOQKMfKNR-2zsOU7E3E5NA8t25HKE0,1070
|
1926
|
+
plancraft-0.3.14.dist-info/RECORD,,
|
File without changes
|
File without changes
|