diff options
-rw-r--r-- | Server/crafting.txt | 6 | ||||
-rw-r--r-- | Server/items.ini | 302 | ||||
-rw-r--r-- | src/BlockID.cpp | 11 |
3 files changed, 17 insertions, 302 deletions
diff --git a/Server/crafting.txt b/Server/crafting.txt index 05d25acaf..c9c93567e 100644 --- a/Server/crafting.txt +++ b/Server/crafting.txt @@ -72,13 +72,13 @@ ChiseledRedSandstone = RedSandstoneSlab, 1:1, 1:2 ChiseledStoneBrick = StoneBrickSlab, 1:1, 1:2 ClayBlock = Clay, 1:1, 1:2, 2:1, 2:2 CoalBlock = Coal, 1:1, 1:2, 1:3, 2:1, 2:2, 2:3, 3:1, 3:2, 3:3 -CoarsedDirt, 4 = Dirt, 1:1, 2:2 | Gravel, 1:2, 2:1 -CoarsedDirt, 4 = Gravel, 1:1, 2:2 | Dirt, 1:2, 2:1 +CoarseDirt, 4 = Dirt, 1:1, 2:2 | Gravel, 1:2, 2:1 +CoarseDirt, 4 = Gravel, 1:1, 2:2 | Dirt, 1:2, 2:1 DarkPrismarine = PrismarineShard, 1:1, 1:2, 1:3, 2:1, 2:3, 3:1, 3:2, 3:3 | Inksac, 2:2 DiamondBlock = Diamond, 1:1, 1:2, 1:3, 2:1, 2:2, 2:3, 3:1, 3:2, 3:3 Diorite, 2 = Cobblestone, * | NetherQuartz, * EmeraldBlock = Emerald, 1:1, 1:2, 1:3, 2:1, 2:2, 2:3, 3:1, 3:2, 3:3 -EndstoneBrick, 4 = Endstone, 1:1, 1:2, 2:1, 2:2 +EndstoneBrick, 4 = End_stone, 1:1, 1:2, 2:1, 2:2 Glowstone = GlowstoneDust, 1:1, 1:2, 2:1, 2:2 GoldBlock = GoldIngot, 1:1, 1:2, 1:3, 2:1, 2:2, 2:3, 3:1, 3:2, 3:3 Granite, 2 = Diorite, * | NetherQuartz, * diff --git a/Server/items.ini b/Server/items.ini index c72cedcbe..7512591a8 100644 --- a/Server/items.ini +++ b/Server/items.ini @@ -10,7 +10,7 @@ andesite=1:5 polishedandesite=1:6 grass=2 dirt=3 -coarseddirt=3:1 +coarsedirt=3:1 podzol=3:2 cobblestone=4 cobble=4 @@ -47,13 +47,11 @@ roofedoaksapling=6:5 bedrock=7 adminium=7 water=8 -flowing_water=8 flowingwater=8 stationarywater=9 stillwater=9 swater=9 lava=10 -flowing_lava=10 flowinglava=10 stationarylava=11 stilllava=11 @@ -61,11 +59,8 @@ slava=11 sand=12 redsand=12:1 gravel=13 -gold_ore=14 goldore=14 -iron_ore=15 ironore=15 -coal_ore=16 coalore=16 log=17 tree=17 @@ -91,9 +86,7 @@ jungleleaves=18:3 sponge=19 wetsponge=19:1 glass=20 -lapis_ore=21 lapisore=21 -lapis_block=22 lapisblock=22 dispenser=23 sandstone=24 @@ -103,14 +96,10 @@ decorativesandstone=24:1 ornamentsandstone=24:1 smoothsandstone=24:2 noteblock=25 -bed_block=26 bedblock=26 -golden_rail=27 goldenrail=27 poweredrail=27 -detector_rail=28 detectorrail=28 -sticky_piston=29 stickypiston=29 web=30 cobweb=30 @@ -119,7 +108,6 @@ tallgrassone=31:1 tallgrasstwo=31:2 deadbush=32 piston=33 -piston_head=34 pistonhead=34 wool=35 cloth=35 @@ -157,13 +145,10 @@ darkgreenwool=35:13 dkgreenwool=35:13 redwool=35:14 blackwool=35:15 -piston_extension=36 pistonextension=36 -yellow_flower=37 yellowflower=37 dandelion=37 poppy=38 -red_flower=38 redflower=38 rose=38 flower=38 @@ -175,17 +160,12 @@ orangetulip=38:5 whitetulip=38:6 pinktulip=38:7 oxeyedaisy=38:8 -brown_mushroom=39 brownmushroom=39 -red_mushroom=40 redmushroom=40 -gold_block=41 goldblock=41 gold=41 -iron_block=42 ironblock=42 iron=42 -double_stone_slab=43 doublestoneslab=43 doubleslab=43 doublestep=43 @@ -201,7 +181,7 @@ smoothstonedoubleslab=43:8 smoothsandstonedoubleslab=43:9 slab=44 step=44 -stone_slab=44 +stoneslab=44 stoneslab=44:0 sandstoneslab=44:1 woodslab=44:2 @@ -210,50 +190,38 @@ brickslab=44:4 stonebrickslab=44:5 netherbrickslab=44:6 quartzslab=44:7 -brick_block=45 brickblock=45 brickwall=45 tnt=46 bookshelf=47 bookcase=47 -mossy_cobblestone=48 mossycobblestone=48 mossy=48 obsidian=49 torch=50 fire=51 -mob_spawner=52 mobspawner=52 -oak_stairs=53 oakstairs=53 oakwoodstairs=53 woodstairs=53 chest=54 -redstone_wire=55 redstonewire=55 redstonedust=55 -diamond_ore=56 diamondore=56 -diamond_block=57 diamondblock=57 -crafting_table=58 craftingtable=58 workbench=58 crop=59 crops=59 -wheat_block=59 wheatblock=59 farmland=60 tilleddirt=60 soil=60 furnace=61 -lit_furnace=62 litfurnace=62 -standing_sign=63 standingsign=63 signblock=63 wooddoorblock=64 -wooden_door_block=64 woodendoorblock=64 ladder=65 rails=66 @@ -262,34 +230,24 @@ track=66 tracks=66 cobblestonestairs=67 stairs=67 -stone_stairs=67 stonestairs=67 -wall_sign=68 wallsign=68 signblocktop=68 lever=69 stoneplate=70 -stone_pressure_plate=70 stonepressureplate=70 rockplate=70 irondoorblock=71 -wooden_pressure_plate=72 woodenpressureplate=72 woodplate=72 -redstone_ore=73 redstoneore=73 -lit_redstone_ore=74 litredstoneore=74 redstoneorealt=74 redstonetorchoff=75 -unlit_redstone_torch=75 unlitredstonetorch=75 -redstone_torch=76 redstonetorch=76 redstonetorchon=76 -stone_button=77 stonebutton=77 -snow_layer=78 snowlayer=78 ice=79 snow=80 @@ -297,7 +255,6 @@ snowblock=80 cactus=81 clayblock=82 reedblock=83 -reeds_block=83 reedsblock=83 jukebox=84 fence=85 @@ -305,7 +262,6 @@ pumpkin=86 netherrack=87 hellrock=87 netherstone=87 -soul_sand=88 soulsand=88 slowsand=88 glowstone=89 @@ -313,17 +269,13 @@ lightstone=89 portal=90 jackolantern=91 jacko=91 -lit_pumpkin=91 litpumpkin=91 cake=92 cakeblock=92 redstonerepeateron=93 -unpowered_repeater=93 unpoweredrepeater=93 -powered_repeater=94 poweredrepeater=94 redstonerepeateroff=94 -stained_glass=95 stainedglass=95 whitestainedglass=95 orangestainedglass=95:1 @@ -359,7 +311,6 @@ dkgreenstainedglass=95:13 redstainedglass=95:14 blackstainedglass=95:15 trapdoor=96 -monster_egg=97 monsteregg=97 silverfishblock=97 stonebrick=98 @@ -367,63 +318,39 @@ stonebricks=98 mossystonebrick=98:1 crackedstonebrick=98:2 chiseledstonebrick=98:3 -brown_mushroom_block=99 brownmushroomblock=99 hugebrownmushroom=99 hugeredmushroom=100 -red_mushroom_block=100 redmushroomblock=100 -iron_bars=101 ironbars=101 -glass_pane=102 glasspane=102 -melon_block=103 melonblock=103 -pumpkin_stem=104 pumpkinstem=104 -melon_stem=105 melonstem=105 vine=106 vines=106 -fence_gate=107 fencegate=107 -brick_stairs=108 brickstairs=108 -stone_brick_stairs=109 stonebrickstairs=109 mycelium=110 lilypad=111 waterlily=111 -nether_brick_block=112 netherbrickblock=112 -nether_brick_fence=113 netherbrickfence=113 -nether_brick_stairs=114 netherbrickstairs=114 -nether_wart_block=115 netherwartblock=115 -enchanting_table=116 enchantingtable=116 enchantmenttable=116 -brewing_stand_block=117 brewingstandblock=117 -cauldron_block=118 cauldronblock=118 -end_portal=119 endportal=119 -end_portal_frame=120 endportalframe=120 -end_stone=121 endstone=121 -dragon_egg=122 dragonegg=122 -redstone_lamp=123 redstonelamp=123 redstonelampoff=123 -lit_redstone_lamp=124 litredstonelamp=124 redstonelampon=124 -double_wooden_slab=125 doublewoodenslab=125 woodendoubleslab=125 oakwooddoubleslab=125:0 @@ -439,7 +366,6 @@ acaciawooddoubleslab=125:4 darkoakwooddoubleslab=125:5 bigoakwooddoubleslab=125:5 roofedwooddoubleslab=125:5 -wooden_slab=126 woodenslab=126 oakwoodslab=126:0 applewoodslab=126:0 @@ -455,46 +381,33 @@ darkoakwoodslab=126:5 roofedwoodslab=126:5 bigoakwoodslab=126:5 cocoa=127 -sandstone_stairs=128 sandstonestairs=128 -emerald_ore=129 emeraldore=129 -ender_chest=130 enderchest=130 -tripwire_hook=131 tripwirehook=131 tripwire=132 -emerald_block=133 emeraldblock=133 -spruce_stairs=134 sprucestairs=134 sprucewoodstairs=134 coniferwoodstairs=134 pinewoodstairs=134 darkwoodstairs=134 -birch_stairs=135 birchstairs=135 birchwoodstairs=135 whitewoodstairs=135 -jungle_stairs=136 junglestairs=136 junglewoodstairs=136 -command_block=137 commandblock=137 beacon=138 -cobblestone_wall=139 cobblestonewall=139 mossycobblestonewall=139:1 -flower_pot_block=140 flowerpotblock=140 carrots=141 carrotcrop=141 potatoes=142 potatocrop=142 -wooden_button=143 woodenbutton=143 skeletonhead=144 -skull_block=144 skullblock=144 witherhead=144:1 zombiehead=144:2 @@ -505,37 +418,25 @@ creeperhead=144:4 anvil=145 slightlydamagedanvil=145:1 verydamagedanvil=145:2 -trapped_chest=146 trappedchest=146 -light_weighted_pressure_plate=147 lightweightedpressureplate=147 -heavy_weighted_pressure_plate=148 heavyweightedpressureplate=148 inactivecomparator=149 -unpowered_comparator=149 unpoweredcomparator=149 activecomparator=150 -powered_comparator=150 poweredcomparator=150 -daylight_detector=151 daylightdetector=151 daylightsensor=151 -redstone_block=152 redstoneblock=152 netherquartzore=153 -quartz_ore=153 quartzore=153 hopper=154 -quartz_block=155 quartzblock=155 chiseledquartzblock=155:1 pillarquartzblock=155:2 -quartz_stairs=156 quartzstairs=156 -activator_rail=157 activatorrail=157 dropper=158 -stained_hardened_clay=159 stainedhardenedclay=159 whitestainedclay=159 orangestainedclay=159:1 @@ -570,7 +471,6 @@ darkgreenstainedclay=159:13 dkgreenstainedclay=159:13 redstainedclay=159:14 blackstainedclay=159:15 -stained_glass_pane=160 stainedglasspane=160 whitestainedglasspane=160 orangestainedglasspane=160:1 @@ -617,26 +517,20 @@ acacialog=162:0 darkoaklog=162:1 bigoaklog=162:1 roofedoaklog=162:1 -acacia_stairs=163 acaciastairs=163 acaciawoodstairs=163 -dark_oak_stairs=164 darkoakstairs=164 darkoakwoodstairs=164 bigoakwoodstiars=164 roofedoakwoodstairs=164 slime=165 -slime_block=165 slimeblock=165 barrier=166 -iron_trapdoor=167 irontrapdoor=167 prismarine=168 prismarinebricks=168:1 darkprismarine=168:2 -sea_lantern=169 sealantern=169 -hay_block=170 hayblock=170 haybale=170 carpet=171 @@ -673,13 +567,9 @@ darkgreencarpet=171:13 dkgreencarpet=171:13 redcarpet=171:14 blackcarpet=171:15 -hardened_clay=172 hardenedclay=172 -coal_block=173 coalblock=173 -packed_ice=174 packedice=174 -double_plant=175 doubleplant=175 sunflower=175:0 lilac=175:1 @@ -687,109 +577,67 @@ doubletallgrass=175:2 doubletallfern=175:3 rosebush=175:4 peony=175:5 -standing_banner=176 standingbanner=176 -wall_banner=177 wallbanner=177 -daylight_detector_inverted=178 daylightdetectorinverted=178 -red_sandstone=179 redsandstone=179 chiseledredsandstone=179:1 smoothredsandstone=179:2 -red_sandstone_stairs=180 redsandstonestairs=180 -double_stone_slab2=181 doublestoneslab2=181 redsandstonedoubleslab=181 newstoneslab=182 -stone_slab2=182 stoneslab2=182 redsandstoneslab=182:0 -spruce_fence_gate=183 sprucefencegate=183 coniferfencegate=183 pinefencegate=183 darkfencegate=183 -birch_fence_gate=184 birchfencegate=184 whitefencegate=184 -jungle_fence_gate=185 junglefencegate=185 -dark_oak_fence_gate=186 darkoakfencegate=186 bigoakfencegate=186 roofedoakfencegate=186 -acacia_fence_gate=187 acaciafencegate=187 -spruce_fence=188 sprucefence=188 coniferfence=188 pinefence=188 darkfence=188 -birch_fence=189 birchfence=189 whitefence=189 -jungle_fence=190 junglefence=190 -dark_oak_fence=191 darkoakfence=191 bigoakfence=191 roofedoakfence=191 -acacia_fence=192 acaciafence=192 -spruce_door_block=193 sprucedoorblock=193 -birch_door_block=194 birchdoorblock=194 -jungle_door_block=195 jungledoorblock=195 -acacia_door_block=196 acaciadoorblock=196 -dark_oak_door_block=197 darkoakdoorblock=197 endrod=198 -end_rod=198 chorusplant=199 -chorus_plant=199 chorusflower=200 -chorus_flower=200 purpurblock=201 -purpur_block=201 purpurpillar=202 -purpur_pillar=202 purpurstairs=203 -purpur_stairs=203 doublepurpurslab=204 -double_purpur_slab=204 purpurslab=205 -purpur_slab=205 endstonebrick=206 -endstone_brick=206 beetrootblock=207 -beetroot_block=207 beetroots=207 grasspath=208 -grass_path=208 endgateway=209 -end_gateway=209 repeatingcommandblock=210 -repeating_command_block=210 chaincommandblock=211 -chain_command_block=211 frostedice=212 -frosted_ice=212 structureblock=255 -structure_block=255 -iron_shovel=256 ironshovel=256 ironspade=256 -iron_pickaxe=257 ironpickaxe=257 ironpick=257 -iron_axe=258 ironaxe=258 -flint_and_steel=259 flintandsteel=259 lighter=259 apple=260 @@ -799,155 +647,108 @@ arrow=262 coal=263 charcoal=263:1 diamond=264 -iron_ingot=265 ironingot=265 ironbar=265 -gold_ingot=266 goldingot=266 goldeningot=266 goldbar=266 goldenbar=266 -iron_sword=267 ironsword=267 -wooden_sword=268 woodensword=268 woodsword=268 -wooden_shovel=269 woodenshovel=269 woodspade=269 woodshovel=269 woodenspade=269 -wooden_pickaxe=270 woodenpickaxe=270 woodpickaxe=270 woodenpick=270 woodpick=270 -wooden_axe=271 woodenaxe=271 woodaxe=271 -stone_sword=272 stonesword=272 -stone_shovel=273 stoneshovel=273 stonespade=273 -stone_pickaxe=274 stonepickaxe=274 stonepick=274 -stone_axe=275 stoneaxe=275 -diamond_sword=276 diamondsword=276 -diamond_shovel=277 diamondshovel=277 diamondspade=277 -diamond_pickaxe=278 diamondpickaxe=278 diamondpick=278 -diamond_axe=279 diamondaxe=279 stick=280 bowl=281 -mushroom_stew=282 mushroomstew=282 bowlwithsoup=282 soupbowl=282 soup=282 -golden_sword=283 goldensword=283 goldsword=283 -golden_shovel=284 goldenshovel=284 goldenspade=284 goldshovel=284 goldspade=284 -golden_pickaxe=285 goldenpickaxe=285 goldpickaxe=285 goldenpick=285 goldpick=285 -golden_axe=286 goldenaxe=286 goldaxe=286 string=287 feather=288 gunpowder=289 -wooden_hoe=290 woodenhoe=290 woodhoe=290 -stone_hoe=291 stonehoe=291 -iron_hoe=292 ironhoe=292 -diamond_hoe=293 diamondhoe=293 -golden_hoe=294 goldenhoe=294 goldhoe=294 seeds=295 -wheat_seeds=295 wheatseeds=295 wheat=296 bread=297 -leather_helmet=298 leatherhelmet=298 -leather_chestplate=299 leatherchestplate=299 -leather_leggings=300 leatherleggings=300 leatherpants=300 -leather_boots=301 leatherboots=301 -chainmail_helmet=302 chainmailhelmet=302 -chainmail_chestplate=303 chainmailchestplate=303 -chainmain_leggings=304 +chainmainleggings=304 chainmailleggings=304 chainmailpants=304 -chainmail_boots=305 chainmailboots=305 -iron_helmet=306 ironhelmet=306 -iron_chestplate=307 ironchestplate=307 -iron_leggings=308 ironleggings=308 ironpants=308 -iron_boots=309 ironboots=309 -diamond_helmet=310 diamondhelmet=310 -diamond_chestplate=311 diamondchestplate=311 -diamond_leggings=312 diamondleggings=312 diamondpants=312 -diamond_boots=313 diamondboots=313 -golden_helmet=314 goldenhelmet=314 goldhelmet=314 -golden_chestplate=315 goldenchestplate=315 goldchestplate=315 -golden_leggings=316 goldenleggings=316 goldenpants=316 goldpants=316 -golden_boots=317 goldenboots=317 goldboots=317 flint=318 porkchop=319 meat=319 pork=319 -cooked_porkchop=320 cookedporkchop=320 cookedmeat=320 cookedpork=320 painting=321 paintings=321 -golden_apple=322 goldenapple=322 goldapple=322 notchapple=322:1 @@ -956,28 +757,23 @@ enchantedgoldapple=322:1 sign=323 oakdoor=324 appledoor=324 -wooden_door=324 woodendoor=324 wooddoor=324 bucket=325 -water_bucket=326 waterbucket=326 -lava_bucket=327 lavabucket=327 minecart=328 saddle=329 -iron_door=330 irondoor=330 redstone=331 redstonedust=331 snowball=332 boat=333 +oakboat=333 leather=334 -milk_bucket=335 milkbucket=335 brick=336 clay=337 -clay_ball=337 clayball=337 sugarcane=338 reed=338 @@ -986,19 +782,15 @@ paper=339 book=340 slimeball=341 slimeorb=341 -chest_minecart=342 chestminecart=342 storageminecart=342 -furnace_minecart=343 furnaceminecart=343 poweredminecart=343 egg=344 compass=345 -fishing_rod=346 fishingrod=346 clock=347 watch=347 -glowstone_dust=348 glowstonedust=348 lightstonedust=348 lightdust=348 @@ -1009,7 +801,6 @@ rawsalmon=349:1 clownfish=349:2 pufferfish=349:3 cookedfish=350 -cooked_fished=350 cookedfished=350 cookedsalmon=350:1 dye=351 @@ -1060,82 +851,54 @@ bed=355 repeater=356 diode=356 cookie=357 -filled_map=358 filledmap=358 shears=359 melon=360 melonslice=360 -pumpkin_seeds=361 pumpkinseeds=361 -melon_seeds=362 melonseeds=362 beef=363 rawbeef=363 -cooked_beef=364 cookedbeef=364 steak=364 chicken=365 rawchicken=365 -cooked_chicken=366 cookedchicken=366 -rotten_flesh=367 rottenflesh=367 -ender_pearl=368 enderpearl=368 -blaze_rod=369 blazerod=369 -ghast_tear=370 ghasttear=370 -gold_nugget=371 goldnugget=371 -nether_wart=372 netherwart=372 potion=373 -glass_bottle=374 glassbottle=374 -spider_eye=374 +spidereye=374 spidereye=375 -fermented_spider_eye=376 fermentedspidereye=376 -blaze_powder=377 blazepowder=377 -magma_cream=378 magmacream=378 -brewing_stand=379 brewingstand=379 cauldron=380 -ender_eye=381 endereye=381 eyeofender=381 glisteringmelon=382 -speckled_melon=382 speckledmelon=382 -spawn_egg=383 spawnegg=383 bottleoenchanting=384 -experience_bottle=384 experiencebottle=384 -fire_charge=385 firecharge=385 bookandquill=386 -writable_book=386 writablebook=386 -written_book=387 writtenbook=387 emerald=388 -item_frame=389 itemframe=389 -flower_pot=390 flowerpot=390 carrot=391 potato=392 -baked_potato=393 bakedpotato=393 -poisonous_potato=394 poisonouspotato=394 emptymap=395 map=395 -golden_carrot=396 goldencarrot=396 skeletonhead=397 skull=397 @@ -1144,60 +907,40 @@ zombiehead=397:2 playerhead=397:3 stevehead=397:3 creeperhead=397:4 -carrot_on_a_stick=398 carrotonastick=398 -nether_star=399 netherstar=399 -pumpkin_pie=400 pumpkinpie=400 fireworkrocket=401 fireworks=401 -firework_charge=402 fireworkcharge=402 fireworkstar=402 -enchanted_book=403 enchantedbook=403 comparator=404 netherbrick=405 netherquartz=406 quartz=406 -tnt_minecart=407 tntminecart=407 -hopper_minecart=408 hopperminecart=408 -prismarine_shard=409 prismarineshard=409 -prismarine_crystals=410 prismarinecrystals=410 rabbit=410 rawrabbit=411 -cooked_rabbit=412 cookedrabbit=412 -rabbit_stew=413 rabbitstew=413 rabbitsoup=413 -rabbit_foot=414 rabbitfoot=414 rabbitsfoot=414 -rabbit_hide=415 rabbithide=415 -armor_stand=416 armorstand=416 -iron_horse_armor=417 ironhorsearmor=417 -golden_horse_armor=418 goldenhorsearmor=418 goldhorsearmor=418 -diamond_horse_armor=419 diamondhorsearmor=419 lead=420 -name_tag=421 nametag=421 -command_block_minecart=422 commandblockminecart=422 mutton=423 rawmutton=423 -cooked_mutton=424 cookedmutton=424 banner=425 blackbanner=425:0 @@ -1233,91 +976,56 @@ ltbluebanner=425:12 magentabanner=425:13 orangebanner=425:14 whitebanner=425:15 -spruce_door=427 sprucedoor=427 coniferdoor=427 pinedoor=427 darkdoor=427 -birch_door=428 birchdoor=428 whitedoor=428 -jungle_door=429 jungledoor=429 -acacia_door=430 acaciadoor=430 -dark_oak_door=431 darkoakdoor=431 bigoakdoor=431 roofedoakdoor=431 chorusfruit=432 -chorus_fruit=432 poppedchorusfruit=433 -popped_chorus_fruit=433 beetroot=434 beetrootseeds=435 -beetroot_seeds=435 beetrootsoup=436 -beetroot_soup=436 dragonbreath=437 -dragon_breath=437 dragonsbreath=437 -dragons_breath=437 splashpotion=438 -splash_potion=438 spectralarrow=439 -spectral_arrow=439 tippedarrow=440 -tipped_arrow=440 lingeringpotion=441 -lingering_potion=441 shield=442 elytra=443 spruceboat=444 -spruce_boat=444 birchboat=445 -birch_boat=445 jungleboat=446 -jungle_boat=446 acaciaboat=447 -acacia_boat=447 darkoakboat=448 -dark_oak_boat=448 goldrecord=2256 -record_13=2256 record13=2256 greenrecord=2257 -record_cat=2257 recordcat=2257 blocksrecord=2258 -record_blocks=2258 recordblocks=2258 chirprecord=2259 -record_chirp=2259 recordchirp=2259 farrecord=2260 -record_far=2260 recordfar=2260 mallrecord=2261 -record_mall=2261 recordmall=2261 mellohirecord=2262 -record_mellohi=2262 recordmellohi=2262 -record_stal=2263 recordstal=2263 stalrecord=2263 -record_strad=2264 recordstrad=2264 stradrecord=2264 -record_ward=2265 recordward=2265 wardrecord=2265 11record=2266 -record_11=2266 record11=2266 -record_wait=2267 recordwait=2267 - - - diff --git a/src/BlockID.cpp b/src/BlockID.cpp index 357f6a5a4..01f2f3bde 100644 --- a/src/BlockID.cpp +++ b/src/BlockID.cpp @@ -64,7 +64,10 @@ public: int Resolve(const AString & a_ItemName) { - ItemMap::iterator itr = m_Map.find(a_ItemName); + // Convert to lowercase and remove underscores. + auto saneItemName = StrToLower(a_ItemName); + saneItemName.erase(std::remove(saneItemName.begin(), saneItemName.end(), '_'), saneItemName.end()); + ItemMap::iterator itr = m_Map.find(saneItemName); if (itr == m_Map.end()) { return -1; @@ -75,8 +78,12 @@ public: bool ResolveItem(const AString & a_ItemName, cItem & a_Item) { + // Convert to lowercase and remove underscores. + auto saneItemName = StrToLower(a_ItemName); + saneItemName.erase(std::remove(saneItemName.begin(), saneItemName.end(), '_'), saneItemName.end()); + // Split into parts divided by either ':' or '^' - AStringVector Split = StringSplitAndTrim(a_ItemName, ":^"); + AStringVector Split = StringSplitAndTrim(saneItemName, ":^"); if (Split.empty()) { return false; |