summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-04-21 09:21:31 +0200
committerMattes D <github@xoft.cz>2014-04-21 09:21:31 +0200
commit4c7621ed16bfa9f0224eab52f8f7acbb0b61ec14 (patch)
treefb45c65b86f4f0b6cfdb125d0c5e941e6042c1ad /src
parentAllow 1.6.4 Forge clients to log in. (diff)
downloadcuberite-4c7621ed16bfa9f0224eab52f8f7acbb0b61ec14.tar
cuberite-4c7621ed16bfa9f0224eab52f8f7acbb0b61ec14.tar.gz
cuberite-4c7621ed16bfa9f0224eab52f8f7acbb0b61ec14.tar.bz2
cuberite-4c7621ed16bfa9f0224eab52f8f7acbb0b61ec14.tar.lz
cuberite-4c7621ed16bfa9f0224eab52f8f7acbb0b61ec14.tar.xz
cuberite-4c7621ed16bfa9f0224eab52f8f7acbb0b61ec14.tar.zst
cuberite-4c7621ed16bfa9f0224eab52f8f7acbb0b61ec14.zip
Diffstat (limited to '')
-rw-r--r--src/CraftingRecipes.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CraftingRecipes.cpp b/src/CraftingRecipes.cpp
index 30e7a8733..c3d6de74d 100644
--- a/src/CraftingRecipes.cpp
+++ b/src/CraftingRecipes.cpp
@@ -824,7 +824,7 @@ void cCraftingRecipes::HandleFireworks(const cItem * a_CraftingGrid, cCraftingRe
case E_ITEM_DYE:
{
int GridID = (itr->x + a_OffsetX) + a_GridStride * (itr->y + a_OffsetY);
- DyeColours.push_back(cFireworkItem::GetVanillaColourCodeFromDye(a_CraftingGrid[GridID].m_ItemDamage));
+ DyeColours.push_back(cFireworkItem::GetVanillaColourCodeFromDye((NIBBLETYPE)(a_CraftingGrid[GridID].m_ItemDamage & 0x0f)));
break;
}
case E_ITEM_GUNPOWDER: break;