diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-07-26 13:26:14 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-07-26 13:26:14 +0200 |
commit | 4de8f5ca2926068eb855ba19c35de2a63ddebf28 (patch) | |
tree | 68dc829d31c16278ee5a7f4d63f9ac1fa3831a81 /src/Items/ItemHandler.cpp | |
parent | Merge branch 'master' into Inventory2 (diff) | |
download | cuberite-4de8f5ca2926068eb855ba19c35de2a63ddebf28.tar cuberite-4de8f5ca2926068eb855ba19c35de2a63ddebf28.tar.gz cuberite-4de8f5ca2926068eb855ba19c35de2a63ddebf28.tar.bz2 cuberite-4de8f5ca2926068eb855ba19c35de2a63ddebf28.tar.lz cuberite-4de8f5ca2926068eb855ba19c35de2a63ddebf28.tar.xz cuberite-4de8f5ca2926068eb855ba19c35de2a63ddebf28.tar.zst cuberite-4de8f5ca2926068eb855ba19c35de2a63ddebf28.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Items/ItemHandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Items/ItemHandler.cpp b/src/Items/ItemHandler.cpp index e256fa232..ec86648b3 100644 --- a/src/Items/ItemHandler.cpp +++ b/src/Items/ItemHandler.cpp @@ -335,7 +335,7 @@ void cItemHandler::OnBlockDestroyed(cWorld * a_World, cPlayer * a_Player, const if (!cBlockInfo::IsOneHitDig(Block)) { - a_Player->UseEquippedItem(GetDurabilityLostWithThatAction(dlaBreakBlock)); + a_Player->UseEquippedItem(GetDurabilityLossByAction(dlaBreakBlock)); } } @@ -346,7 +346,7 @@ void cItemHandler::OnBlockDestroyed(cWorld * a_World, cPlayer * a_Player, const void cItemHandler::OnEntityAttack(cPlayer * a_Attacker, cEntity * a_AttackedEntity) { UNUSED(a_AttackedEntity); - a_Attacker->UseEquippedItem(GetDurabilityLostWithThatAction(dlaAttackEntity)); + a_Attacker->UseEquippedItem(GetDurabilityLossByAction(dlaAttackEntity)); } @@ -364,7 +364,7 @@ void cItemHandler::OnFoodEaten(cWorld * a_World, cPlayer * a_Player, cItem * a_I -short cItemHandler::GetDurabilityLostWithThatAction(eDurabilityLostAction a_Action) +short cItemHandler::GetDurabilityLossByAction(eDurabilityLostAction a_Action) { switch (a_Action) { |