fixes
This commit is contained in:
parent
d404c1743a
commit
28d6850668
93 changed files with 420 additions and 499 deletions
|
@ -80,7 +80,7 @@ import common.packet.SPacketSetExperience;
|
|||
import common.packet.SPacketSkin;
|
||||
import common.packet.SPacketTimeUpdate;
|
||||
import common.packet.SPacketWorld;
|
||||
import common.potion.PotionEffect;
|
||||
import common.potion.StatusEffect;
|
||||
import common.tags.TagObject;
|
||||
import common.util.BlockPos;
|
||||
import common.util.EncryptUtil;
|
||||
|
@ -755,7 +755,7 @@ public final class Server implements IThreadListener, Executor {
|
|||
conn.sendPacket(new SPacketSkin(player.getId(), player.getSkin())); // , player.getModel()));
|
||||
conn.setPlayerLocation(player.posX, player.posY, player.posZ, player.rotYaw, player.rotPitch);
|
||||
this.updateTimeAndWeatherForPlayer(conn, world);
|
||||
for(PotionEffect effect : player.getEffects()) {
|
||||
for(StatusEffect effect : player.getEffects()) {
|
||||
conn.sendPacket(new SPacketEntityEffect(player.getId(), effect));
|
||||
}
|
||||
conn.sendPacket(new SPacketPlayerAbilities(player));
|
||||
|
@ -926,7 +926,7 @@ public final class Server implements IThreadListener, Executor {
|
|||
nplayer.setHealth(nplayer.getHealth());
|
||||
this.updateTimeAndWeatherForPlayer(conn, world);
|
||||
this.syncPlayerInventory(nplayer);
|
||||
for(PotionEffect effect : nplayer.getEffects()) {
|
||||
for(StatusEffect effect : nplayer.getEffects()) {
|
||||
conn.sendPacket(new SPacketEntityEffect(nplayer.getId(), effect));
|
||||
}
|
||||
conn.sendPlayerAbilities();
|
||||
|
@ -951,7 +951,7 @@ public final class Server implements IThreadListener, Executor {
|
|||
player.setRotationYawHead(yaw);
|
||||
this.updateTimeAndWeatherForPlayer((Player)player.connection, newWorld);
|
||||
this.syncPlayerInventory(player);
|
||||
for(PotionEffect effect : player.getEffects()) {
|
||||
for(StatusEffect effect : player.getEffects()) {
|
||||
player.connection.sendPacket(new SPacketEntityEffect(player.getId(), effect));
|
||||
}
|
||||
player.connection.sendPlayerAbilities();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue