Skip to content

Commit

Permalink
Suppressed schematic warnings for incorrect version matching in non-l…
Browse files Browse the repository at this point in the history
…egacy versions
  • Loading branch information
OmerBenGera committed Apr 29, 2022
1 parent 5ed336a commit cbbd340
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -29,7 +29,8 @@ public Schematic parseSchematic(DataInputStream inputStream, String schematicNam
try {
CompoundTag compoundTag = (CompoundTag) Tag.fromStream(inputStream, 0);

if (compoundTag.getValue().containsKey("version") && !compoundTag.getValue().get("version").getValue().equals(ServerVersion.getBukkitVersion()))
if (ServerVersion.isLegacy() && compoundTag.getValue().containsKey("version") &&
!compoundTag.getValue().get("version").getValue().equals(ServerVersion.getBukkitVersion()))
SuperiorSkyblockPlugin.log("&cSchematic " + schematicName + " was created in a different version, may cause issues.");

if (!compoundTag.getValue().isEmpty())
Expand Down

0 comments on commit cbbd340

Please sign in to comment.