mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Fix for COTW and a fix for stat wipes w/ offline mode off for FlatFile
This commit is contained in:
		@@ -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 {
 | 
			
		||||
 
 | 
			
		||||
@@ -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);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user