mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-09-10 01:28:19 +02:00
Fixed potential blow up from paintings with idiotic users
This commit is contained in:
parent
3f6b6aea19
commit
dd6b0e491f
@ -202,7 +202,7 @@ public class PacketsManager {
|
|||||||
int id = ((MiscDisguise) disguise).getId();
|
int id = ((MiscDisguise) disguise).getId();
|
||||||
if (id == -1)
|
if (id == -1)
|
||||||
id = new Random().nextInt(EnumArt.values().length);
|
id = new Random().nextInt(EnumArt.values().length);
|
||||||
mods.write(5, EnumArt.values()[id].B);
|
mods.write(5, EnumArt.values()[id % EnumArt.values().length].B);
|
||||||
|
|
||||||
// Make the teleport packet to make it visible..
|
// Make the teleport packet to make it visible..
|
||||||
spawnPackets[1] = new PacketContainer(Packets.Server.ENTITY_TELEPORT);
|
spawnPackets[1] = new PacketContainer(Packets.Server.ENTITY_TELEPORT);
|
||||||
|
Loading…
Reference in New Issue
Block a user