From e81ffc2ad5a173ff0c8b137fd5bc89ced0152630 Mon Sep 17 00:00:00 2001 From: sk89q Date: Sat, 30 Oct 2010 19:40:36 -0700 Subject: [PATCH] Updated WorldEdit for the new block types. --- src/WorldEdit.java | 2 +- src/com/sk89q/worldedit/blocks/BlockType.java | 10 ++++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/WorldEdit.java b/src/WorldEdit.java index bae2ee336..6ec5e6613 100644 --- a/src/WorldEdit.java +++ b/src/WorldEdit.java @@ -53,7 +53,7 @@ public class WorldEdit { private final static Integer[] DEFAULT_ALLOWED_BLOCKS = { 0, 1, 2, 3, 4, 5, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 35, 41, 42, 43, 44, 45, 47, 48, 49, 52, 53, 54, 56, 57, 58, 60, - 61, 62, 67, 73, 78, 79, 80, 82, 85 + 61, 62, 67, 73, 78, 79, 80, 82, 85, 86, 87, 88, 89, 91 }; /** diff --git a/src/com/sk89q/worldedit/blocks/BlockType.java b/src/com/sk89q/worldedit/blocks/BlockType.java index 1d8970481..f0da66a29 100644 --- a/src/com/sk89q/worldedit/blocks/BlockType.java +++ b/src/com/sk89q/worldedit/blocks/BlockType.java @@ -95,12 +95,18 @@ public enum BlockType { STONE_BUTTON(77, "Stone Button", "stonebutton"), SNOW(78, "Snow", "snow"), ICE(79, "Ice", "ice"), - SNOW_BLOCK(80, "Snow Block", "snowblock"), + SNOW_BLOCK(80, "Snow block", "snowblock"), CACTUS(81, "Cactus", "cactus"), CLAY(82, "Clay", "clay"), REED(83, "Reed", "reed"), JUKEBOX(84, "Jukebox", "jukebox"), - FENCE(85, "Fence", "fence"); + FENCE(85, "Fence", "fence"), + PUMPKIN(86, "Pumpkin", "pumpkin"), + RED_BLOCK(87, "Cobblestone (red mossy)", new String[]{"redmossycobblestone", "redcobblestone"}), + HELL_DIRT(88, "Mud", "mud"), + HELL_GOLD(89, "Brittle gold", "brittlegold"), + PORTAL(90, "Portal", "portal"), + LIGHTED_PUMPKIN(91, "Pumpkin (on)", new String[]{"pumpkinlighted", "pumpkinon", "litpumpkin"}); /** * Stores a map of the IDs for fast access.