Made setRotation work for players, with yaw and pitch parameters.

This commit is contained in:
luisc committed 2021-10-24 23:33:22 -05:00
1 parent 18aa2d099f
commit 6fcf566ef7
2 files changed
+26 -1

No files matched your search

@@ -309,7 +309,10 @@ public class ScriptPlayer<T extends EntityPlayerMP> extends ScriptLivingBase<T>
player.inventory.mainInventory[i] = null;
}
}
public void setRotation(float rotationYaw, float rotationPitch){
NoppesUtilPlayer.teleportPlayer(player, player.posX, player.posY, player.posZ, rotationYaw, rotationPitch, player.dimension);
}
/**
* @param achievement The achievement id. For a complete list see http://minecraft.gamepedia.com/Achievements