Skip to content

Commit

Permalink
Fix VISIBLE_MOB_EFFECTS data type
Browse files Browse the repository at this point in the history
  • Loading branch information
Redned235 committed Jun 25, 2024
1 parent 3336851 commit 186efd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class Bedrock_v685 extends Bedrock_v671 {

protected static final EntityDataTypeMap ENTITY_DATA = Bedrock_v671.ENTITY_DATA
.toBuilder()
.insert(EntityDataTypes.VISIBLE_MOB_EFFECTS, 131, EntityDataFormat.NBT) // TODO check data format
.insert(EntityDataTypes.VISIBLE_MOB_EFFECTS, 131, EntityDataFormat.LONG)
.build();

protected static final TypeMap<LevelEventType> LEVEL_EVENTS = Bedrock_v671.LEVEL_EVENTS.toBuilder()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,5 +275,5 @@ public boolean isInstance(Object value) {
/**
* @since v685
*/
public static final EntityDataType<NbtMap> VISIBLE_MOB_EFFECTS = new EntityDataType<>(NbtMap.class, "VISIBLE_MOB_EFFECTS");
public static final EntityDataType<Long> VISIBLE_MOB_EFFECTS = new EntityDataType<>(Long.class, "VISIBLE_MOB_EFFECTS");
}

0 comments on commit 186efd6

Please sign in to comment.