Merge pull request #2713 from codewarrior0/patch-4

Add missing null check in PacketBotaniaEffect
This commit is contained in:
Vasco Lavos authored and GitHub committed 2018-08-27 12:06:58 +01:00
commit e29c64dda2
1 file changed
+2
@@ -107,6 +107,8 @@ public class PacketBotaniaEffect implements IMessage {
}
case ITEM_SMOKE: {
Entity item = world.getEntityByID(message.args[0]);
if (item == null) return;
int p = message.args[1];
for(int i = 0; i < p; i++) {