Hotfix for Leather being applied to bad item sets.
This commit is contained in:
parent
417ab2d367
commit
a89595fe14
Binary file not shown.
@ -4035,7 +4035,7 @@ public class GenericFunctions {
|
||||
}
|
||||
Location teleloc = target.getLocation().add(target.getLocation().getDirection().multiply(-1.0-mult));
|
||||
int i=0;
|
||||
while (teleloc.getBlock().getType().isSolid()) {
|
||||
while (teleloc.getBlock().getType().isSolid() || teleloc.getBlock().getType()==Material.BEDROCK) {
|
||||
if (i==0) {
|
||||
teleloc=target.getLocation();
|
||||
} else
|
||||
|
@ -508,7 +508,8 @@ public class Loot {
|
||||
if (item.getType().toString().contains("SWORD")) {
|
||||
|
||||
} else
|
||||
if (!GenericFunctions.isEquip(item)) {
|
||||
if (!GenericFunctions.isEquip(item) ||
|
||||
item.getType().name().contains("LEATHER")) {
|
||||
allowed = false;
|
||||
}
|
||||
tierbonus = (custom)?tierbonus:modifyTierBonus(item,tierbonus);
|
||||
@ -519,7 +520,8 @@ public class Loot {
|
||||
item.setType(Material.SHIELD);
|
||||
tierbonus/=(custom)?1:2;
|
||||
} else
|
||||
if (!GenericFunctions.isEquip(item)) {
|
||||
if (!GenericFunctions.isEquip(item) ||
|
||||
item.getType().name().contains("LEATHER")) {
|
||||
allowed = false;
|
||||
}
|
||||
tierbonus = (custom)?tierbonus:modifyTierBonus(item,tierbonus);
|
||||
@ -529,7 +531,8 @@ public class Loot {
|
||||
if (item.getType().toString().contains("SWORD")) {
|
||||
item.setType(Material.valueOf(item.getType().toString().replace("SWORD","")+"AXE"));
|
||||
} else
|
||||
if (!GenericFunctions.isEquip(item)) {
|
||||
if (!GenericFunctions.isEquip(item) ||
|
||||
item.getType().name().contains("LEATHER")) {
|
||||
allowed = false;
|
||||
}
|
||||
tierbonus = (custom)?tierbonus:modifyTierBonus(item,tierbonus);
|
||||
|
Loading…
x
Reference in New Issue
Block a user