mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-27 11:07:44 +01:00
parent
bded936af5
commit
71141a0f8d
@ -132,7 +132,7 @@ public class RepairConfig extends ConfigLoader {
|
||||
}
|
||||
|
||||
// Minimum Quantity
|
||||
int minimumQuantity = (itemMaterial != null && repairMaterial != null ? Repair.getRepairAndSalvageQuantities(new ItemStack(itemMaterial), repairMaterial, repairMetadata) : config.getInt("Repairables." + key + ".MinimumQuantity"));
|
||||
int minimumQuantity = (itemMaterial != null && repairMaterial != null ? Repair.getRepairAndSalvageQuantities(new ItemStack(itemMaterial), repairMaterial, repairMetadata) : config.getInt("Repairables." + key + ".MinimumQuantity", 2));
|
||||
|
||||
if (minimumQuantity <= 0 && itemMaterial != null) {
|
||||
minimumQuantity = Repair.getRepairAndSalvageQuantities(new ItemStack(itemMaterial));
|
||||
|
@ -160,7 +160,7 @@ public final class MobHealthbarUtils {
|
||||
* @param livingEntity The {@link LivingEntity} of the livingEntity to check
|
||||
* @return true if the livingEntity is a boss, false otherwise
|
||||
*/
|
||||
public static boolean isBoss(LivingEntity livingEntity) {
|
||||
private static boolean isBoss(LivingEntity livingEntity) {
|
||||
switch (livingEntity.getType()) {
|
||||
case ENDER_DRAGON:
|
||||
case WITHER:
|
||||
|
Loading…
Reference in New Issue
Block a user