mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 02:25:57 +01:00
Minor shulker fix
This commit is contained in:
parent
66708ac314
commit
f9c4dbe614
@ -179,7 +179,7 @@ public class ShulkerController extends MobEntityController {
|
||||
|
||||
@Override
|
||||
protected EntityAIBodyControl s() {
|
||||
return new EntityAIBodyControl(this);
|
||||
return npc == null ? super.s() : new EntityAIBodyControl(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -1,7 +1,6 @@
|
||||
package net.citizensnpcs.nms.v1_11_R1.entity;
|
||||
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.DyeColor;
|
||||
import org.bukkit.craftbukkit.v1_11_R1.CraftServer;
|
||||
import org.bukkit.craftbukkit.v1_11_R1.entity.CraftEntity;
|
||||
import org.bukkit.craftbukkit.v1_11_R1.entity.CraftShulker;
|
||||
@ -180,11 +179,7 @@ public class ShulkerController extends MobEntityController {
|
||||
|
||||
@Override
|
||||
protected EntityAIBodyControl s() {
|
||||
return new EntityAIBodyControl(this);
|
||||
}
|
||||
|
||||
public void setColor(DyeColor color) {
|
||||
this.datawatcher.set(bw, color.getWoolData());
|
||||
return npc == null ? super.s() : new EntityAIBodyControl(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -186,7 +186,7 @@ public class ShulkerController extends MobEntityController {
|
||||
|
||||
@Override
|
||||
protected EntityAIBodyControl s() {
|
||||
return new EntityAIBodyControl(this);
|
||||
return npc == null ? super.s() : new EntityAIBodyControl(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -206,7 +206,7 @@ public class ShulkerController extends MobEntityController {
|
||||
|
||||
@Override
|
||||
protected EntityAIBodyControl o() {
|
||||
return new EntityAIBodyControl(this);
|
||||
return npc == null ? super.o() : new EntityAIBodyControl(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -202,7 +202,7 @@ public class ShulkerController extends MobEntityController {
|
||||
|
||||
@Override
|
||||
protected EntityAIBodyControl o() {
|
||||
return new EntityAIBodyControl(this);
|
||||
return npc == null ? super.o() : new EntityAIBodyControl(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -203,7 +203,7 @@ public class ShulkerController extends MobEntityController {
|
||||
|
||||
@Override
|
||||
protected EntityAIBodyControl o() {
|
||||
return new EntityAIBodyControl(this);
|
||||
return npc == null ? super.o() : new EntityAIBodyControl(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -203,7 +203,7 @@ public class ShulkerController extends MobEntityController {
|
||||
|
||||
@Override
|
||||
protected EntityAIBodyControl r() {
|
||||
return new EntityAIBodyControl(this);
|
||||
return npc == null ? super.r() : new EntityAIBodyControl(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -91,7 +91,7 @@ public class ShulkerController extends MobEntityController {
|
||||
|
||||
@Override
|
||||
protected BodyRotationControl createBodyControl() {
|
||||
return new BodyRotationControl(this);
|
||||
return npc == null ? super.createBodyControl() : new BodyRotationControl(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -92,7 +92,7 @@ public class ShulkerController extends MobEntityController {
|
||||
|
||||
@Override
|
||||
protected BodyRotationControl createBodyControl() {
|
||||
return new BodyRotationControl(this);
|
||||
return npc == null ? super.createBodyControl() : new BodyRotationControl(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -93,7 +93,7 @@ public class ShulkerController extends MobEntityController {
|
||||
|
||||
@Override
|
||||
protected BodyRotationControl createBodyControl() {
|
||||
return new BodyRotationControl(this);
|
||||
return npc == null ? super.createBodyControl() : new BodyRotationControl(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -92,7 +92,7 @@ public class ShulkerController extends MobEntityController {
|
||||
|
||||
@Override
|
||||
protected BodyRotationControl createBodyControl() {
|
||||
return new BodyRotationControl(this);
|
||||
return npc == null ? super.createBodyControl() : new BodyRotationControl(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user