SteamWar/MissileWars
Archiviert
13
0

Add Missile Lore #18

Manuell gemergt
Lixfel hat 7 Commits von Lore nach master 2020-09-26 21:51:38 +02:00 zusammengeführt
Nur Änderungen aus Commit 4c82cb3cd4 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -31,7 +31,6 @@ import com.sk89q.worldedit.math.BlockVector3;
import com.sk89q.worldedit.math.transform.AffineTransform;
import com.sk89q.worldedit.session.ClipboardHolder;
import com.sk89q.worldedit.world.World;
import com.sk89q.worldedit.world.block.BlockType;
import com.sk89q.worldedit.world.block.BlockTypes;
import de.steamwar.misslewars.MissileWars;
import org.bukkit.Bukkit;
@ -54,7 +53,6 @@ public class Missile extends SpecialItem {
private final Clipboard clipboard;
private final ItemStack item;
private final int tntCount;
private Missile(File missileFile) {
String[] strings = missileFile.getName().split("\\.");
@ -77,8 +75,7 @@ public class Missile extends SpecialItem {
EditSession e = WorldEdit.getInstance().getEditSessionFactory().getEditSession(world, -1);
BlockTypeMask blockTypeMask = new BlockTypeMask(clipboard, BlockTypes.TNT);
tntCount = e.countBlocks(clipboard.getRegion(), blockTypeMask);
lore.add("§7TNT §8: §e" + tntCount);
lore.add("§7TNT §8: §e" + e.countBlocks(clipboard.getRegion(), blockTypeMask));
item = createItem(itemType, "§c" + name, 1, lore, false);
}