diff --git a/pom.xml b/pom.xml
index 04a5146..7d59692 100644
--- a/pom.xml
+++ b/pom.xml
@@ -6,7 +6,7 @@
com.github.unldenis.corpse
Corpse
- 1.0.5-SNAPSHOT
+ 1.0.6-SNAPSHOT
8
diff --git a/src/main/java/com/github/unldenis/corpse/logic/PacketLoader.java b/src/main/java/com/github/unldenis/corpse/logic/PacketLoader.java
index c3a6c47..f33655b 100644
--- a/src/main/java/com/github/unldenis/corpse/logic/PacketLoader.java
+++ b/src/main/java/com/github/unldenis/corpse/logic/PacketLoader.java
@@ -19,6 +19,7 @@
package com.github.unldenis.corpse.logic;
import com.github.unldenis.corpse.logic.packet.*;
+import com.github.unldenis.corpse.util.*;
import org.jetbrains.annotations.*;
import java.util.*;
@@ -57,8 +58,12 @@ public void load() {
packets.add(wrapperNamedEntitySpawn);
packets.add(wrapperPlayerInfoAdd);
packets.add(wrapperPlayerInfoRemove);
- packets.add(wrapperBed);
- packets.add(wrapperEntityTeleport);
+
+ //Fix 'Caused by: java.lang.IllegalArgumentException: Could not find packet for type BED' for last versions
+ if(VersionUtil.isBelow(VersionUtil.VersionEnum.V1_12)) {
+ packets.add(wrapperBed);
+ packets.add(wrapperEntityTeleport);
+ }
this.packets.forEach(IPacket::load);
}