Fixed invisible doors.
This commit is contained in:
@ -36,7 +36,6 @@ public class StaticObject implements IClientOutgoingPacket
|
||||
private final int _maxHp;
|
||||
private final int _currentHp;
|
||||
private final boolean _showHp;
|
||||
private final int _damageGrade;
|
||||
|
||||
public StaticObject(L2StaticObjectInstance staticObject)
|
||||
{
|
||||
@ -50,7 +49,6 @@ public class StaticObject implements IClientOutgoingPacket
|
||||
_maxHp = 0;
|
||||
_currentHp = 0;
|
||||
_showHp = false;
|
||||
_damageGrade = 0;
|
||||
}
|
||||
|
||||
public StaticObject(L2DoorInstance door, boolean targetable)
|
||||
@ -65,7 +63,6 @@ public class StaticObject implements IClientOutgoingPacket
|
||||
_maxHp = door.getMaxHp();
|
||||
_currentHp = (int) door.getCurrentHp();
|
||||
_showHp = door.getIsShowHp();
|
||||
_damageGrade = door.getDamage();
|
||||
}
|
||||
|
||||
@Override
|
||||
@ -83,7 +80,7 @@ public class StaticObject implements IClientOutgoingPacket
|
||||
packet.writeD(_currentHp);
|
||||
packet.writeD(_maxHp);
|
||||
packet.writeD(_showHp ? 1 : 0);
|
||||
packet.writeD(_damageGrade);
|
||||
packet.writeD(0x00);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user