aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.World/RecordingItem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.World/RecordingItem.cpp')
-rw-r--r--Minecraft.World/RecordingItem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Minecraft.World/RecordingItem.cpp b/Minecraft.World/RecordingItem.cpp
index 455323c2..3475263f 100644
--- a/Minecraft.World/RecordingItem.cpp
+++ b/Minecraft.World/RecordingItem.cpp
@@ -30,7 +30,7 @@ bool RecordingItem::useOn(shared_ptr<ItemInstance> itemInstance, shared_ptr<Play
{
if (level->isClientSide) return true;
- ((JukeboxTile *) Tile::jukebox)->setRecord(level, x, y, z, itemInstance);
+ static_cast<JukeboxTile *>(Tile::jukebox)->setRecord(level, x, y, z, itemInstance);
level->levelEvent(nullptr, LevelEvent::SOUND_PLAY_RECORDING, x, y, z, id);
itemInstance->count--;
@@ -73,6 +73,6 @@ RecordingItem *RecordingItem::getByName(const wstring &name)
}
else
{
- return NULL;
+ return nullptr;
}
} \ No newline at end of file