Fix NoSuchMethodError for PacketPlayOutEntityTeleport on 1.7.10

This commit is contained in:
filoghost 2016-08-25 10:00:59 +02:00
parent 2168bf4cfd
commit c22c025fb9

View File

@ -11,7 +11,6 @@ import net.minecraft.server.v1_7_R4.NBTTagCompound;
import net.minecraft.server.v1_7_R4.PacketPlayOutEntityTeleport;
import net.minecraft.server.v1_7_R4.World;
import net.minecraft.server.v1_7_R4.EntityPlayer;
import net.minecraft.server.v1_7_R4.MathHelper;
public class EntityNMSWitherSkull extends EntityWitherSkull implements NMSWitherSkull {
@ -122,14 +121,7 @@ public class EntityNMSWitherSkull extends EntityWitherSkull implements NMSWither
super.setPosition(x, y, z);
// Send a packet near to update the position.
PacketPlayOutEntityTeleport teleportPacket = new PacketPlayOutEntityTeleport(
getIdNMS(),
MathHelper.floor(this.locX * 32.0D),
MathHelper.floor(this.locY * 32.0D),
MathHelper.floor(this.locZ * 32.0D),
(byte) (int) (this.yaw * 256.0F / 360.0F),
(byte) (int) (this.pitch * 256.0F / 360.0F)
);
PacketPlayOutEntityTeleport teleportPacket = new PacketPlayOutEntityTeleport(this);
for (Object obj : this.world.players) {
if (obj instanceof EntityPlayer) {