Skip to content

Commit

Permalink
fixed bug regarding older versions not loading correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
InstantlyMoist committed Mar 11, 2020
1 parent 86182a5 commit e4dfbbc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/main/java/me/kyllian/xRay/XRayPlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ public void initializeConfig() {

Map<String, WrappedBlockData> tempData = new HashMap<>();
for (String block : getConfig().getStringList("Settings.xRayBlocks")) {
tempData.put(block, WrappedBlockData.createData(Material.valueOf(block)));
if (Bukkit.getVersion().contains("1.8") || Bukkit.getVersion().contains("1.7")) tempData.put(block, WrappedBlockData.createData(Material.valueOf(block), 1));
else tempData.put(block, WrappedBlockData.createData(Material.valueOf(block)));
}
data = Collections.unmodifiableMap(tempData);
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: xRay
version: 3.1
version: 3.11
main: me.kyllian.xRay.XRayPlugin
description: A legit xRay
depend: [ProtocolLib]
Expand Down

0 comments on commit e4dfbbc

Please sign in to comment.