Skip to content

Commit

Permalink
partial fix for sided issues w/ armor synch packets
Browse files Browse the repository at this point in the history
  • Loading branch information
progwml6 committed Feb 26, 2014
1 parent d6372a7 commit f2d4b48
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -24,15 +24,15 @@ public void encodeInto (ChannelHandlerContext ctx, ByteBuf buffer)
@Override
public void decodeInto (ChannelHandlerContext ctx, ByteBuf buffer)
{
if (FMLCommonHandler.instance().getEffectiveSide() == Side.SERVER)
if (FMLCommonHandler.instance().getEffectiveSide() == Side.CLIENT)
{
try
{
byte packetID = buffer.readByte();
}
catch (Exception e)
{
TConstruct.logger.warn("Failed at reading server packet for TConstruct.");
TConstruct.logger.warn("Failed at reading Client packet for TConstruct.");
e.printStackTrace();
}
try
Expand All @@ -49,14 +49,14 @@ public void decodeInto (ChannelHandlerContext ctx, ByteBuf buffer)
@Override
public void handleClientSide (EntityPlayer player)
{
TProxyClient.armorExtended.recalculateHealth(player, TConstruct.playerTracker.getPlayerStats(player.getDisplayName()));


}

@Override
public void handleServerSide (EntityPlayer player)
{
TProxyClient.armorExtended.recalculateHealth(player, TConstruct.playerTracker.getPlayerStats(player.getDisplayName()));

}
}

0 comments on commit f2d4b48

Please sign in to comment.