Because making it upper case broke all the things.

This commit is contained in:
GJ
2012-06-06 18:02:22 -04:00
parent 0a44a74f59
commit 2f15c71412
66 changed files with 318 additions and 305 deletions

View File

@ -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()) {

View File

@ -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;