1
mirror of https://github.com/StarWishsama/Slimefun4.git synced 2024-09-20 03:35:51 +00:00

Fix PR: Remove block storage clear

This commit is contained in:
NihilistBrew 2019-08-03 20:16:19 +02:00 committed by GitHub
parent 8af503aceb
commit b6a4322de6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1840,7 +1840,6 @@ public class SlimefunSetup {
Block b = e.getBlock(); // Refactored it into this so we don't need to call e.getBlock() all the time.
if (b.getType() != Material.SPAWNER || BlockStorage.hasBlockInfo(b)) return true;
// If the spawner's BlockStorage has BlockInfo, then it's not a vanilla spawner and shouldn't give a broken spawner.
BlockStorage.clearBlockInfo(b);
ItemStack spawner = SlimefunItems.BROKEN_SPAWNER.clone();
ItemMeta im = spawner.getItemMeta();
List<String> lore = im.getLore();