Fix the misc disguise for falling block
This commit is contained in:
		@@ -14,6 +14,11 @@ public class MiscDisguise extends Disguise {
 | 
			
		||||
        this(disguiseType, replaceSounds, -1, -1);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public MiscDisguise(DisguiseType disguiseType, boolean replaceSounds, int addictionalData) {
 | 
			
		||||
        this(disguiseType, replaceSounds, (disguiseType == DisguiseType.FALLING_BLOCK ? addictionalData : -1),
 | 
			
		||||
                (disguiseType == DisguiseType.FALLING_BLOCK ? -1 : addictionalData));
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public MiscDisguise(DisguiseType disguiseType, boolean replaceSounds, int id, int data) {
 | 
			
		||||
        switch (disguiseType) {
 | 
			
		||||
        // The only disguises which should use a custom data.
 | 
			
		||||
@@ -41,14 +46,6 @@ public class MiscDisguise extends Disguise {
 | 
			
		||||
        createDisguise(disguiseType, replaceSounds);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public MiscDisguise(DisguiseType disguiseType, boolean replaceSounds, int addictionalData) {
 | 
			
		||||
        this(disguiseType, replaceSounds, -1, addictionalData);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public int getId() {
 | 
			
		||||
        return id;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public MiscDisguise(DisguiseType disguiseType, int id, int data) {
 | 
			
		||||
        this(disguiseType, true, id, data);
 | 
			
		||||
    }
 | 
			
		||||
@@ -89,4 +86,8 @@ public class MiscDisguise extends Disguise {
 | 
			
		||||
        return data;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public int getId() {
 | 
			
		||||
        return id;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user