mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-07-01 13:14:44 +02:00
Because making it upper case broke all the things.
This commit is contained in:
@ -11,7 +11,7 @@ import org.bukkit.inventory.ItemStack;
|
||||
import org.getspout.spoutapi.SpoutManager;
|
||||
import org.getspout.spoutapi.player.SpoutPlayer;
|
||||
|
||||
import com.gmail.nossr50.McMMO;
|
||||
import com.gmail.nossr50.mcMMO;
|
||||
import com.gmail.nossr50.config.Config;
|
||||
import com.gmail.nossr50.datatypes.PlayerProfile;
|
||||
import com.gmail.nossr50.datatypes.SkillType;
|
||||
@ -45,8 +45,8 @@ public class Repair {
|
||||
Skills.xpProcessing(player, PP, SkillType.REPAIR, dif * 10);
|
||||
|
||||
//CLANG CLANG
|
||||
if (McMMO.spoutEnabled) {
|
||||
SpoutSounds.playRepairNoise(player, McMMO.p);
|
||||
if (mcMMO.spoutEnabled) {
|
||||
SpoutSounds.playRepairNoise(player, mcMMO.p);
|
||||
}
|
||||
}
|
||||
|
||||
@ -241,7 +241,7 @@ public class Repair {
|
||||
PlayerProfile PP = Users.getProfile(player);
|
||||
|
||||
if (!PP.getPlacedAnvil()) {
|
||||
if (McMMO.spoutEnabled) {
|
||||
if (mcMMO.spoutEnabled) {
|
||||
SpoutPlayer sPlayer = SpoutManager.getPlayer(player);
|
||||
|
||||
if (sPlayer.isSpoutCraftEnabled()) {
|
||||
|
@ -205,6 +205,19 @@ public class SimpleRepairManager implements RepairManager {
|
||||
ItemStack[] contents = inventory.getContents();
|
||||
for (int i = 0; i < contents.length; i++) {
|
||||
ItemStack item = contents[i];
|
||||
|
||||
//DEBUG TIME!
|
||||
if (item == null) {
|
||||
System.out.println("The item is null.");
|
||||
System.out.println("Content length: " + contents.length);
|
||||
System.out.println("Current contents: " + i);
|
||||
}
|
||||
else {
|
||||
System.out.println("The item is: " + item.toString());
|
||||
System.out.println("Content length: " + contents.length);
|
||||
System.out.println("Current contents: " + i);
|
||||
}
|
||||
|
||||
if (item.getTypeId() == itemId) {
|
||||
if (item.getData().getData() == metadata) {
|
||||
location = i;
|
||||
|
Reference in New Issue
Block a user