mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-25 12:15:53 +01:00
Fix /npc panda
This commit is contained in:
parent
7b2f08b372
commit
bb42a99bb2
@ -62,7 +62,6 @@ public class CowController extends MobEntityController {
|
||||
this.npc = (CitizensNPC) npc;
|
||||
if (npc != null) {
|
||||
NMSImpl.clearGoals(goalSelector, targetSelector);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user