Fix /npc panda

This commit is contained in:
fullwall 2019-06-09 17:59:05 +08:00
parent 7b2f08b372
commit bb42a99bb2
3 changed files with 0 additions and 8 deletions

View File

@ -62,7 +62,6 @@ public class CowController extends MobEntityController {
this.npc = (CitizensNPC) npc;
if (npc != null) {
NMSImpl.clearGoals(goalSelector, targetSelector);
}
}

View File

@ -46,7 +46,6 @@ public class VillagerController extends MobEntityController {
private TreeMap<?, ?> behaviorMap;
private boolean blockingATrade;
private boolean blockTrades = true;
boolean calledNMSHeight = false;
private final CitizensNPC npc;

View File

@ -190,9 +190,6 @@ public class Commands {
PandaTrait trait = npc.getTrait(PandaTrait.class);
String output = "";
if (args.hasValueFlag("gene")) {
if (args.getFlagInteger("size") <= 0) {
throw new CommandUsageException();
}
Panda.Gene gene = Util.matchEnum(Panda.Gene.values(), args.getFlag("gene"));
if (gene == null) {
throw new CommandUsageException(Messages.INVALID_PANDA_GENE,
@ -202,9 +199,6 @@ public class Commands {
output += ' ' + Messaging.tr(Messages.PANDA_MAIN_GENE_SET, args.getFlag("gene"));
}
if (args.hasValueFlag("hgene")) {
if (args.getFlagInteger("size") <= 0) {
throw new CommandUsageException();
}
Panda.Gene gene = Util.matchEnum(Panda.Gene.values(), args.getFlag("hgene"));
if (gene == null) {
throw new CommandUsageException(Messages.INVALID_PANDA_GENE,