Fix a packet erroring if player is sleeping

This commit is contained in:
libraryaddict 2014-01-05 11:05:19 +13:00
parent ad777d1b76
commit 84234b8788

View File

@ -476,8 +476,8 @@ public class DisguiseUtilities {
if (player.isSleeping()) {
manager.sendServerPacket(
player,
manager.createPacketConstructor(PacketType.Play.Server.BED, player, 0, loc.getBlockX(), loc.getBlockY(),
loc.getBlockZ()).createPacket(player, 0, loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()));
manager.createPacketConstructor(PacketType.Play.Server.BED, player, loc.getBlockX(), loc.getBlockY(),
loc.getBlockZ()).createPacket(player, loc.getBlockX(), loc.getBlockY(), loc.getBlockZ()));
}
// Resend any active potion effects