mirror of
https://github.com/libraryaddict/LibsDisguises.git
synced 2024-12-17 15:49:17 +01: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();
|
||||
if (id == -1)
|
||||
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..
|
||||
spawnPackets[1] = new PacketContainer(Packets.Server.ENTITY_TELEPORT);
|
||||
|
Loading…
Reference in New Issue
Block a user