summaryrefslogtreecommitdiffstats
path: root/source/JukeboxEntity.cpp
diff options
context:
space:
mode:
authorluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-15 19:57:47 +0100
committerluksor111@gmail.com <luksor111@gmail.com@0a769ca7-a7f5-676a-18bf-c427514a06d6>2012-11-15 19:57:47 +0100
commitea8545dff189312ad1300fddb2f2ead7d5cf1c59 (patch)
tree2cfa106c110808bce3e927521dc9e67c87c32ba3 /source/JukeboxEntity.cpp
parentMore valgrind fixes (diff)
downloadcuberite-ea8545dff189312ad1300fddb2f2ead7d5cf1c59.tar
cuberite-ea8545dff189312ad1300fddb2f2ead7d5cf1c59.tar.gz
cuberite-ea8545dff189312ad1300fddb2f2ead7d5cf1c59.tar.bz2
cuberite-ea8545dff189312ad1300fddb2f2ead7d5cf1c59.tar.lz
cuberite-ea8545dff189312ad1300fddb2f2ead7d5cf1c59.tar.xz
cuberite-ea8545dff189312ad1300fddb2f2ead7d5cf1c59.tar.zst
cuberite-ea8545dff189312ad1300fddb2f2ead7d5cf1c59.zip
Diffstat (limited to 'source/JukeboxEntity.cpp')
-rw-r--r--source/JukeboxEntity.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/JukeboxEntity.cpp b/source/JukeboxEntity.cpp
index e72f95926..c190ffa11 100644
--- a/source/JukeboxEntity.cpp
+++ b/source/JukeboxEntity.cpp
@@ -21,7 +21,7 @@ cJukeboxEntity::cJukeboxEntity(int a_BlockX, int a_BlockY, int a_BlockZ, cWorld
cJukeboxEntity::~cJukeboxEntity()
{
- if (m_Record >= 2256 && m_Record <= 2266)
+ if (m_Record >= 2256 && m_Record <= 2267)
{
EjectRecord();
m_Record = 0;
@@ -37,14 +37,14 @@ void cJukeboxEntity::UsedBy( cPlayer * a_Player )
if (m_Record == 0)
{
const cItem & HeldItem = a_Player->GetEquippedItem();
- if (HeldItem.m_ItemType >= 2256 && HeldItem.m_ItemType <= 2266)
+ if (HeldItem.m_ItemType >= 2256 && HeldItem.m_ItemType <= 2267)
{
m_Record = HeldItem.m_ItemType;
a_Player->UseEquippedItem();
PlayRecord();
}
}
- else if (m_Record >= 2256 && m_Record <= 2266)
+ else if (m_Record >= 2256 && m_Record <= 2267)
{
EjectRecord();
m_Record = 0;