mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 18:24:43 +02:00
Fixing Daze, Counter-Attack, and Serrated Strikes hover tip messages containing {0}
This commit is contained in:
@ -22,7 +22,7 @@ public class BleedTimerTask extends BukkitRunnable {
|
||||
private static Map<LivingEntity, BleedContainer> bleedList = new HashMap<LivingEntity, BleedContainer>();
|
||||
|
||||
@Override
|
||||
synchronized public void run() {
|
||||
public void run() {
|
||||
Iterator<Entry<LivingEntity, BleedContainer>> bleedIterator = bleedList.entrySet().iterator();
|
||||
|
||||
while (bleedIterator.hasNext()) {
|
||||
@ -108,7 +108,7 @@ public class BleedTimerTask extends BukkitRunnable {
|
||||
* @param entity LivingEntity to add
|
||||
* @param ticks Number of bleeding ticks
|
||||
*/
|
||||
public synchronized static void add(LivingEntity entity, LivingEntity attacker, int ticks, int bleedRank) {
|
||||
public static void add(LivingEntity entity, LivingEntity attacker, int ticks, int bleedRank) {
|
||||
BleedContainer newBleedContainer = new BleedContainer(entity, ticks, bleedRank, attacker);
|
||||
bleedList.put(entity, newBleedContainer);
|
||||
}
|
||||
|
@ -521,7 +521,9 @@ public final class ItemUtils {
|
||||
}
|
||||
|
||||
for (Recipe recipe : mcMMO.p.getServer().getRecipesFor(item)) {
|
||||
if (recipe instanceof FurnaceRecipe && ((FurnaceRecipe) recipe).getInput().getType().isBlock() && MaterialUtils.isOre(((FurnaceRecipe) recipe).getInput().getType())) {
|
||||
if (recipe instanceof FurnaceRecipe
|
||||
&& ((FurnaceRecipe) recipe).getInput().getType().isBlock()
|
||||
&& MaterialUtils.isOre(((FurnaceRecipe) recipe).getInput().getType())) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user