Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-12-26 02:50:06 +01:00
Clean up warnings
Dieser Commit ist enthalten in:
Ursprung
b352f7321f
Commit
574f162019
@ -22,8 +22,6 @@ package com.sk89q.worldedit;
|
|||||||
|
|
||||||
import com.sk89q.worldedit.blocks.*;
|
import com.sk89q.worldedit.blocks.*;
|
||||||
import com.sk89q.worldedit.data.*;
|
import com.sk89q.worldedit.data.*;
|
||||||
import com.sk89q.worldedit.regions.CuboidRegion;
|
|
||||||
import com.sk89q.worldedit.regions.Region;
|
|
||||||
import com.sk89q.worldedit.schematic.SchematicFormat;
|
import com.sk89q.worldedit.schematic.SchematicFormat;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
@ -74,7 +74,6 @@ import com.sk89q.worldedit.commands.ToolUtilCommands;
|
|||||||
import com.sk89q.worldedit.commands.UtilityCommands;
|
import com.sk89q.worldedit.commands.UtilityCommands;
|
||||||
import com.sk89q.worldedit.masks.BiomeTypeMask;
|
import com.sk89q.worldedit.masks.BiomeTypeMask;
|
||||||
import com.sk89q.worldedit.masks.BlockMask;
|
import com.sk89q.worldedit.masks.BlockMask;
|
||||||
import com.sk89q.worldedit.masks.BlockTypeMask;
|
|
||||||
import com.sk89q.worldedit.masks.CombinedMask;
|
import com.sk89q.worldedit.masks.CombinedMask;
|
||||||
import com.sk89q.worldedit.masks.DynamicRegionMask;
|
import com.sk89q.worldedit.masks.DynamicRegionMask;
|
||||||
import com.sk89q.worldedit.masks.ExistingBlockMask;
|
import com.sk89q.worldedit.masks.ExistingBlockMask;
|
||||||
|
@ -486,6 +486,7 @@ public final class BlockData {
|
|||||||
return (16 - data) & 0xf;
|
return (16 - data) & 0xf;
|
||||||
case WEST_EAST:
|
case WEST_EAST:
|
||||||
return (8 - data) & 0xf;
|
return (8 - data) & 0xf;
|
||||||
|
default:
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
@ -19,9 +19,7 @@
|
|||||||
|
|
||||||
package com.sk89q.worldedit.bukkit;
|
package com.sk89q.worldedit.bukkit;
|
||||||
|
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
|
||||||
|
|
||||||
import org.bukkit.Server;
|
import org.bukkit.Server;
|
||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
@ -48,8 +46,6 @@ public class BukkitUtil {
|
|||||||
private BukkitUtil() {
|
private BukkitUtil() {
|
||||||
}
|
}
|
||||||
|
|
||||||
private static final Map<World, LocalWorld> wlw = new HashMap<World, LocalWorld>();
|
|
||||||
|
|
||||||
public static LocalWorld getLocalWorld(World w) {
|
public static LocalWorld getLocalWorld(World w) {
|
||||||
return new BukkitWorld(w);
|
return new BukkitWorld(w);
|
||||||
}
|
}
|
||||||
|
@ -24,7 +24,6 @@ import java.util.Collection;
|
|||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
import java.util.logging.Level;
|
|
||||||
import java.util.logging.Logger;
|
import java.util.logging.Logger;
|
||||||
|
|
||||||
import net.minecraft.server.NBTBase;
|
import net.minecraft.server.NBTBase;
|
||||||
|
@ -32,7 +32,7 @@ import com.sk89q.worldedit.WorldEdit;
|
|||||||
import com.sk89q.worldedit.WorldEditException;
|
import com.sk89q.worldedit.WorldEditException;
|
||||||
import com.sk89q.worldedit.blocks.BaseBlock;
|
import com.sk89q.worldedit.blocks.BaseBlock;
|
||||||
import com.sk89q.worldedit.blocks.BlockID;
|
import com.sk89q.worldedit.blocks.BlockID;
|
||||||
import com.sk89q.worldedit.masks.BlockTypeMask;
|
import com.sk89q.worldedit.masks.BlockMask;
|
||||||
import com.sk89q.worldedit.patterns.Pattern;
|
import com.sk89q.worldedit.patterns.Pattern;
|
||||||
import com.sk89q.worldedit.patterns.SingleBlockPattern;
|
import com.sk89q.worldedit.patterns.SingleBlockPattern;
|
||||||
import com.sk89q.worldedit.tools.BrushTool;
|
import com.sk89q.worldedit.tools.BrushTool;
|
||||||
@ -233,7 +233,7 @@ public class BrushCommands {
|
|||||||
Pattern fill = new SingleBlockPattern(new BaseBlock(0));
|
Pattern fill = new SingleBlockPattern(new BaseBlock(0));
|
||||||
tool.setFill(fill);
|
tool.setFill(fill);
|
||||||
tool.setSize(radius);
|
tool.setSize(radius);
|
||||||
tool.setMask(new BlockTypeMask(BlockID.FIRE));
|
tool.setMask(new BlockMask(new BaseBlock(BlockID.FIRE)));
|
||||||
tool.setBrush(new SphereBrush(), "worldedit.brush.ex");
|
tool.setBrush(new SphereBrush(), "worldedit.brush.ex");
|
||||||
|
|
||||||
player.print(String.format("Extinguisher equipped (%.0f).",
|
player.print(String.format("Extinguisher equipped (%.0f).",
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren