mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-01-19 16:59:37 +01:00
Logic fix
This commit is contained in:
parent
edbf46a751
commit
4b5ca5ecf4
@ -106,7 +106,7 @@ public class SimpleRepairManager implements RepairManager {
|
|||||||
|
|
||||||
// We're going to hold onto our repair item location
|
// We're going to hold onto our repair item location
|
||||||
int repairItemLocation;
|
int repairItemLocation;
|
||||||
if(repairable.getRepairMaterialMetadata() != (byte) -1) {
|
if(repairable.getRepairMaterialMetadata() == (byte) -1) {
|
||||||
repairItemLocation = findInInventory(inventory, repairable.getRepairMaterialId());
|
repairItemLocation = findInInventory(inventory, repairable.getRepairMaterialId());
|
||||||
} else {
|
} else {
|
||||||
// Special case for when the repairable has metadata that must be addressed
|
// Special case for when the repairable has metadata that must be addressed
|
||||||
|
Loading…
x
Reference in New Issue
Block a user