SteamWar/MissileWars
Archiviert
13
0

Fix PastePoint #7

Manuell gemergt
YoyoNow hat 1 Commits von ItemManagement nach master 2020-09-05 19:07:05 +02:00 zusammengeführt
Nur Änderungen aus Commit 19488fb802 werden angezeigt - Alle Commits anzeigen

Datei anzeigen

@ -50,7 +50,7 @@ public class LandingPad extends SpecialItem {
public boolean handleUse(Player p) { public boolean handleUse(Player p) {
p.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_FALLING, 2, 1, false, false, false)); p.addPotionEffect(new PotionEffect(PotionEffectType.SLOW_FALLING, 2, 1, false, false, false));
Location l = p.getLocation(); Location l = p.getLocation();
BlockVector3 paste = BlockVector3.at(l.getX() - 1, l.getY() - 5, l.getZ()).subtract(offset); BlockVector3 paste = BlockVector3.at(l.getX() + 1, l.getY() - 5, l.getZ()).subtract(offset);
EditSession editSession = WorldEdit.getInstance().getEditSessionFactory().getEditSession(world, -1); EditSession editSession = WorldEdit.getInstance().getEditSessionFactory().getEditSession(world, -1);
Operations.completeBlindly(new ClipboardHolder(clipboard).createPaste(editSession).ignoreAirBlocks(true).to(paste).build()); Operations.completeBlindly(new ClipboardHolder(clipboard).createPaste(editSession).ignoreAirBlocks(true).to(paste).build());