diff options
Diffstat (limited to 'src/content_sao.cpp')
-rw-r--r-- | src/content_sao.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/src/content_sao.cpp b/src/content_sao.cpp index 0488c8023..843ab29f7 100644 --- a/src/content_sao.cpp +++ b/src/content_sao.cpp @@ -292,13 +292,6 @@ public: ServerActiveObject *puncher, float time_from_last_punch) { - // Directly delete item in creative mode - if(g_settings->getBool("creative_mode") == true) - { - m_removed = true; - return 0; - } - // Take item into inventory ItemStack item = createItemStack(); Inventory *inv = puncher->getInventory(); @@ -1143,16 +1136,6 @@ void PlayerSAO::disconnected() } } -void PlayerSAO::createCreativeInventory() -{ - if(m_inventory != &m_player->inventory) - delete m_inventory; - - m_inventory = new Inventory(m_player->inventory); - m_inventory->clearContents(); - scriptapi_get_creative_inventory(m_env->getLua(), this); -} - std::string PlayerSAO::getPropertyPacket() { m_prop.is_visible = (getHP() != 0); |