mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2025-04-04 03:05:54 +02:00
Don't use Y velocity in boat movement
This commit is contained in:
parent
fbb6a48349
commit
79cf3f7bac
@ -175,7 +175,7 @@ public class BoatController extends MobEntityController {
|
|||||||
baseTick();
|
baseTick();
|
||||||
if (getControllingPassenger() instanceof NPCHolder
|
if (getControllingPassenger() instanceof NPCHolder
|
||||||
&& ((NPCHolder) getControllingPassenger()).getNPC().getNavigator().isNavigating()) {
|
&& ((NPCHolder) getControllingPassenger()).getNPC().getNavigator().isNavigating()) {
|
||||||
setDeltaMovement(getControllingPassenger().getDeltaMovement().multiply(20, 1, 20));
|
setDeltaMovement(getControllingPassenger().getDeltaMovement().multiply(20, 0, 20));
|
||||||
}
|
}
|
||||||
npc.update();
|
npc.update();
|
||||||
if (getHurtTime() > 0) {
|
if (getHurtTime() > 0) {
|
||||||
|
@ -183,7 +183,7 @@ public class BoatController extends MobEntityController {
|
|||||||
baseTick();
|
baseTick();
|
||||||
if (getControllingPassenger() instanceof NPCHolder
|
if (getControllingPassenger() instanceof NPCHolder
|
||||||
&& ((NPCHolder) getControllingPassenger()).getNPC().getNavigator().isNavigating()) {
|
&& ((NPCHolder) getControllingPassenger()).getNPC().getNavigator().isNavigating()) {
|
||||||
setDeltaMovement(getControllingPassenger().getDeltaMovement().multiply(20, 1, 20));
|
setDeltaMovement(getControllingPassenger().getDeltaMovement().multiply(20, 0, 20));
|
||||||
}
|
}
|
||||||
npc.update();
|
npc.update();
|
||||||
if (getHurtTime() > 0) {
|
if (getHurtTime() > 0) {
|
||||||
|
@ -174,7 +174,7 @@ public class BoatController extends MobEntityController {
|
|||||||
baseTick();
|
baseTick();
|
||||||
if (getControllingPassenger() instanceof NPCHolder
|
if (getControllingPassenger() instanceof NPCHolder
|
||||||
&& ((NPCHolder) getControllingPassenger()).getNPC().getNavigator().isNavigating()) {
|
&& ((NPCHolder) getControllingPassenger()).getNPC().getNavigator().isNavigating()) {
|
||||||
setDeltaMovement(getControllingPassenger().getDeltaMovement().multiply(20, 1, 20));
|
setDeltaMovement(getControllingPassenger().getDeltaMovement().multiply(20, 0, 20));
|
||||||
}
|
}
|
||||||
npc.update();
|
npc.update();
|
||||||
if (getHurtTime() > 0) {
|
if (getHurtTime() > 0) {
|
||||||
|
@ -55,7 +55,6 @@ public class CodController extends MobEntityController {
|
|||||||
|
|
||||||
public static class EntityCodNPC extends Cod implements NPCHolder {
|
public static class EntityCodNPC extends Cod implements NPCHolder {
|
||||||
private final CitizensNPC npc;
|
private final CitizensNPC npc;
|
||||||
|
|
||||||
private MoveControl oldMoveController;
|
private MoveControl oldMoveController;
|
||||||
|
|
||||||
public EntityCodNPC(EntityType<? extends Cod> types, Level level) {
|
public EntityCodNPC(EntityType<? extends Cod> types, Level level) {
|
||||||
|
@ -246,7 +246,7 @@ public class BoatController extends MobEntityController {
|
|||||||
baseTick();
|
baseTick();
|
||||||
if (getControllingPassenger() instanceof NPCHolder
|
if (getControllingPassenger() instanceof NPCHolder
|
||||||
&& ((NPCHolder) getControllingPassenger()).getNPC().getNavigator().isNavigating()) {
|
&& ((NPCHolder) getControllingPassenger()).getNPC().getNavigator().isNavigating()) {
|
||||||
setDeltaMovement(getControllingPassenger().getDeltaMovement().multiply(20, 1, 20));
|
setDeltaMovement(getControllingPassenger().getDeltaMovement().multiply(20, 0, 20));
|
||||||
}
|
}
|
||||||
npc.update();
|
npc.update();
|
||||||
if (getHurtTime() > 0) {
|
if (getHurtTime() > 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user