Get rid of multiple minecart watchers
This commit is contained in:
parent
42511d5de7
commit
fd6de1c47c
@ -225,8 +225,10 @@ public class Disguise {
|
||||
boolean throwError = false;
|
||||
try {
|
||||
String name;
|
||||
if (getType().isPlayer()) {
|
||||
name = "Player";
|
||||
if (getType() == DisguiseType.MINECART_FURNACE || getType() == DisguiseType.MINECART_HOPPER
|
||||
|| getType() == DisguiseType.MINECART_MOB_SPAWNER || getType() == DisguiseType.MINECART_RIDEABLE
|
||||
|| getType() == DisguiseType.MINECART_TNT || getType() == DisguiseType.MINECART_CHEST) {
|
||||
name = "Minecart";
|
||||
} else {
|
||||
name = toReadable(getType().name());
|
||||
}
|
||||
|
@ -1,9 +0,0 @@
|
||||
package me.libraryaddict.disguise.DisguiseTypes.Watchers;
|
||||
|
||||
public class MinecartChestWatcher extends MinecartAbstractWatcher {
|
||||
|
||||
public MinecartChestWatcher(int entityId) {
|
||||
super(entityId);
|
||||
}
|
||||
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
package me.libraryaddict.disguise.DisguiseTypes.Watchers;
|
||||
|
||||
public class MinecartFurnaceWatcher extends MinecartAbstractWatcher {
|
||||
|
||||
public MinecartFurnaceWatcher(int entityId) {
|
||||
super(entityId);
|
||||
}
|
||||
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
package me.libraryaddict.disguise.DisguiseTypes.Watchers;
|
||||
|
||||
public class MinecartHopperWatcher extends MinecartAbstractWatcher{
|
||||
|
||||
public MinecartHopperWatcher(int entityId) {
|
||||
super(entityId);
|
||||
}
|
||||
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
package me.libraryaddict.disguise.DisguiseTypes.Watchers;
|
||||
|
||||
public class MinecartMobSpawnerWatcher extends MinecartAbstractWatcher{
|
||||
|
||||
public MinecartMobSpawnerWatcher(int entityId) {
|
||||
super(entityId);
|
||||
}
|
||||
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
package me.libraryaddict.disguise.DisguiseTypes.Watchers;
|
||||
|
||||
public class MinecartRideableWatcher extends MinecartAbstractWatcher{
|
||||
|
||||
public MinecartRideableWatcher(int entityId) {
|
||||
super(entityId);
|
||||
}
|
||||
|
||||
}
|
@ -1,9 +0,0 @@
|
||||
package me.libraryaddict.disguise.DisguiseTypes.Watchers;
|
||||
|
||||
public class MinecartTntWatcher extends MinecartAbstractWatcher{
|
||||
|
||||
public MinecartTntWatcher(int entityId) {
|
||||
super(entityId);
|
||||
}
|
||||
|
||||
}
|
@ -2,9 +2,9 @@ package me.libraryaddict.disguise.DisguiseTypes.Watchers;
|
||||
|
||||
import me.libraryaddict.disguise.DisguiseTypes.FlagWatcher;
|
||||
|
||||
public abstract class MinecartAbstractWatcher extends FlagWatcher {
|
||||
public abstract class MinecartWatcher extends FlagWatcher {
|
||||
|
||||
public MinecartAbstractWatcher(int entityId) {
|
||||
public MinecartWatcher(int entityId) {
|
||||
super(entityId);
|
||||
setValue(16, (byte) 0);
|
||||
setValue(17, 0);
|
Loading…
Reference in New Issue
Block a user