mirror of
https://github.com/Artillex-Studios/AxMinions.git
synced 2025-01-21 21:01:49 +01:00
Possibly fix tool issues v4
This commit is contained in:
parent
1ec12a6f2c
commit
24879ffbd9
@ -679,6 +679,7 @@ class Minion(
|
|||||||
if (Config.CAN_BREAK_TOOLS()) {
|
if (Config.CAN_BREAK_TOOLS()) {
|
||||||
if (Config.PULL_FROM_CHEST()) {
|
if (Config.PULL_FROM_CHEST()) {
|
||||||
val item = pullFromChest()
|
val item = pullFromChest()
|
||||||
|
linkedInventory?.addItem(tool)
|
||||||
setTool(item)
|
setTool(item)
|
||||||
|
|
||||||
if (!tool.type.isAir && notDurable.contains(tool.type)) {
|
if (!tool.type.isAir && notDurable.contains(tool.type)) {
|
||||||
@ -695,6 +696,7 @@ class Minion(
|
|||||||
} else {
|
} else {
|
||||||
if (Config.PULL_FROM_CHEST()) {
|
if (Config.PULL_FROM_CHEST()) {
|
||||||
val item = pullFromChest()
|
val item = pullFromChest()
|
||||||
|
linkedInventory?.addItem(tool)
|
||||||
setTool(item)
|
setTool(item)
|
||||||
|
|
||||||
if (!tool.type.isAir && notDurable.contains(tool.type)) {
|
if (!tool.type.isAir && notDurable.contains(tool.type)) {
|
||||||
@ -735,6 +737,7 @@ class Minion(
|
|||||||
if (Config.CAN_BREAK_TOOLS()) {
|
if (Config.CAN_BREAK_TOOLS()) {
|
||||||
if (Config.PULL_FROM_CHEST()) {
|
if (Config.PULL_FROM_CHEST()) {
|
||||||
val item = pullFromChest()
|
val item = pullFromChest()
|
||||||
|
linkedInventory?.addItem(tool)
|
||||||
setTool(item)
|
setTool(item)
|
||||||
|
|
||||||
if (!tool.type.isAir && notDurable.contains(tool.type)) {
|
if (!tool.type.isAir && notDurable.contains(tool.type)) {
|
||||||
@ -751,6 +754,7 @@ class Minion(
|
|||||||
} else {
|
} else {
|
||||||
if (Config.PULL_FROM_CHEST()) {
|
if (Config.PULL_FROM_CHEST()) {
|
||||||
val item = pullFromChest()
|
val item = pullFromChest()
|
||||||
|
linkedInventory?.addItem(tool)
|
||||||
setTool(item)
|
setTool(item)
|
||||||
|
|
||||||
if (!tool.type.isAir && notDurable.contains(tool.type)) {
|
if (!tool.type.isAir && notDurable.contains(tool.type)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user