Handle localisations with null parameters.
This commit is contained in:
parent
9c27bf30d6
commit
6d4d57cf6c
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -287,7 +288,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? sml.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(sml.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -311,7 +312,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? nsl.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -141,7 +142,7 @@ public final class NpcSay implements IClientOutgoingPacket
|
||||
if (nsl != null)
|
||||
{
|
||||
packet.writeD(-1);
|
||||
packet.writeS(nsl.getLocalisation(_parameters));
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -287,7 +288,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? sml.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(sml.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -311,7 +312,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? nsl.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -141,7 +142,7 @@ public final class NpcSay implements IClientOutgoingPacket
|
||||
if (nsl != null)
|
||||
{
|
||||
packet.writeD(-1);
|
||||
packet.writeS(nsl.getLocalisation(_parameters));
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -287,7 +288,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? sml.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(sml.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -311,7 +312,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? nsl.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -141,7 +142,7 @@ public final class NpcSay implements IClientOutgoingPacket
|
||||
if (nsl != null)
|
||||
{
|
||||
packet.writeD(-1);
|
||||
packet.writeS(nsl.getLocalisation(_parameters));
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -287,7 +288,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? sml.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(sml.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -311,7 +312,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? nsl.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -141,7 +142,7 @@ public final class NpcSay implements IClientOutgoingPacket
|
||||
if (nsl != null)
|
||||
{
|
||||
packet.writeD(-1);
|
||||
packet.writeS(nsl.getLocalisation(_parameters));
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -287,7 +288,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? sml.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(sml.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -311,7 +312,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? nsl.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -141,7 +142,7 @@ public final class NpcSay implements IClientOutgoingPacket
|
||||
if (nsl != null)
|
||||
{
|
||||
packet.writeD(-1);
|
||||
packet.writeS(nsl.getLocalisation(_parameters));
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -287,7 +288,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? sml.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(sml.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -311,7 +312,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? nsl.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -141,7 +142,7 @@ public final class NpcSay implements IClientOutgoingPacket
|
||||
if (nsl != null)
|
||||
{
|
||||
packet.writeD(-1);
|
||||
packet.writeS(nsl.getLocalisation(_parameters));
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -287,7 +288,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? sml.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(sml.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -311,7 +312,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? nsl.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -141,7 +142,7 @@ public final class NpcSay implements IClientOutgoingPacket
|
||||
if (nsl != null)
|
||||
{
|
||||
packet.writeD(-1);
|
||||
packet.writeS(nsl.getLocalisation(_parameters));
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -259,7 +260,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? sml.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(sml.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -283,7 +284,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? nsl.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -141,7 +142,7 @@ public final class NpcSay implements IClientOutgoingPacket
|
||||
if (nsl != null)
|
||||
{
|
||||
packet.writeD(-1);
|
||||
packet.writeS(nsl.getLocalisation(_parameters));
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -287,7 +288,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? sml.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(sml.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -311,7 +312,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? nsl.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -141,7 +142,7 @@ public final class NpcSay implements IClientOutgoingPacket
|
||||
if (nsl != null)
|
||||
{
|
||||
packet.writeD(-1);
|
||||
packet.writeS(nsl.getLocalisation(_parameters));
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -287,7 +288,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? sml.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(sml.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -311,7 +312,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? nsl.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -141,7 +142,7 @@ public final class NpcSay implements IClientOutgoingPacket
|
||||
if (nsl != null)
|
||||
{
|
||||
packet.writeD(-1);
|
||||
packet.writeS(nsl.getLocalisation(_parameters));
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -287,7 +288,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? sml.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(sml.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -311,7 +312,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? nsl.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -141,7 +142,7 @@ public final class NpcSay implements IClientOutgoingPacket
|
||||
if (nsl != null)
|
||||
{
|
||||
packet.writeD(-1);
|
||||
packet.writeS(nsl.getLocalisation(_parameters));
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -287,7 +288,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? sml.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(sml.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -311,7 +312,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? nsl.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -141,7 +142,7 @@ public final class NpcSay implements IClientOutgoingPacket
|
||||
if (nsl != null)
|
||||
{
|
||||
packet.writeD(-1);
|
||||
packet.writeS(nsl.getLocalisation(_parameters));
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -287,7 +288,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? sml.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(sml.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@ -311,7 +312,7 @@ public class ExShowScreenMessage implements IClientOutgoingPacket
|
||||
packet.writeD(_time);
|
||||
packet.writeD(_fade ? 0x01 : 0x00);
|
||||
packet.writeD(-1);
|
||||
packet.writeS(_parameters != null ? nsl.getLocalisation(_parameters) : _text);
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
@ -17,6 +17,7 @@
|
||||
package org.l2jmobius.gameserver.network.serverpackets;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import org.l2jmobius.commons.network.PacketWriter;
|
||||
@ -141,7 +142,7 @@ public final class NpcSay implements IClientOutgoingPacket
|
||||
if (nsl != null)
|
||||
{
|
||||
packet.writeD(-1);
|
||||
packet.writeS(nsl.getLocalisation(_parameters));
|
||||
packet.writeS(nsl.getLocalisation(_parameters != null ? _parameters : Collections.EMPTY_LIST));
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user