Fix monster plant duplication glitch

This commit is contained in:
Beny 2021-03-07 18:05:39 +00:00
parent 113103492e
commit b02beb8ce3

View File

@ -13,7 +13,7 @@ public class BreedMonsterplantsEvent extends MessageHandler {
Pet petOne = this.client.getHabbo().getHabboInfo().getCurrentRoom().getPet(this.packet.readInt());
Pet petTwo = this.client.getHabbo().getHabboInfo().getCurrentRoom().getPet(this.packet.readInt());
if (petOne == null || petTwo == null) {
if (petOne == null || petTwo == null || petOne == petTwo) {
//TODO Add error
return;
}
@ -23,4 +23,4 @@ public class BreedMonsterplantsEvent extends MessageHandler {
}
}
}
}
}