forked from SteamWar/SteamWar
Final fixes
This commit is contained in:
@@ -19,9 +19,9 @@
|
||||
|
||||
package de.steamwar.core;
|
||||
|
||||
import de.steamwar.WorldEditRendererCUIEditor;
|
||||
import de.steamwar.entity.CAABox;
|
||||
import de.steamwar.entity.REntityServer;
|
||||
import org.bukkit.Material;
|
||||
import org.bukkit.block.data.BlockData;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.util.Vector;
|
||||
@@ -80,7 +80,11 @@ public class WorldEditRendererWrapper20 implements WorldEditRendererWrapper {
|
||||
type = clipboard ? WorldEditRendererCUIEditor.Type.CLIPBOARD_OTHER : WorldEditRendererCUIEditor.Type.SELECTION_OTHER;
|
||||
}
|
||||
float width = type.getWidth(player).value;
|
||||
BlockData block = type.getMaterial(player).createBlockData();
|
||||
Material material = type.getMaterial(player);
|
||||
if (material == Material.BARRIER) {
|
||||
hide(player, null, clipboard, true);
|
||||
}
|
||||
BlockData block = material.createBlockData();
|
||||
|
||||
BoxPair boxPair = boxes.computeIfAbsent(player, __ -> new HashMap<>()).computeIfAbsent(owner, __ -> new BoxPair());
|
||||
CAABox box = boxPair.get(clipboard);
|
||||
|
||||
Reference in New Issue
Block a user