From b30002948c335cbb6233afcf04e06ff80576aa78 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Sat, 4 Aug 2012 15:21:34 -0700 Subject: [PATCH] Fix for COTW and a fix for stat wipes w/ offline mode off for FlatFile --- src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java | 2 +- .../gmail/nossr50/skills/taming/CallOfTheWildEventHandler.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java b/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java index 295baf06c..bdc61ef52 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java +++ b/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java @@ -352,7 +352,7 @@ public class PlayerProfile { while ((line = in.readLine()) != null) { //Read the line in and copy it to the output it's not the player //we want to edit - if (!line.split(":")[0].equalsIgnoreCase(playerName)) { + if (!line.split(":")[0].equals(playerName)) { writer.append(line).append("\r\n"); } else { diff --git a/src/main/java/com/gmail/nossr50/skills/taming/CallOfTheWildEventHandler.java b/src/main/java/com/gmail/nossr50/skills/taming/CallOfTheWildEventHandler.java index a35b99e72..e74e6cf84 100644 --- a/src/main/java/com/gmail/nossr50/skills/taming/CallOfTheWildEventHandler.java +++ b/src/main/java/com/gmail/nossr50/skills/taming/CallOfTheWildEventHandler.java @@ -55,7 +55,7 @@ public class CallOfTheWildEventHandler { } protected void spawnCreature() { - LivingEntity entity = (LivingEntity) player.getWorld().spawnEntity(player.getLocation(), type); + LivingEntity entity = (LivingEntity) player.getWorld().spawnCreature(player.getLocation(), type); entity.setMetadata("mcmmoSummoned", new FixedMetadataValue(mcMMO.p, true)); ((Tameable) entity).setOwner(player);