Add missing isNetworking

This commit is contained in:
Benau 2018-11-17 01:07:06 +08:00
parent e77eb2ccf6
commit 99eefa3797

View File

@ -265,7 +265,8 @@ Item* ItemManager::dropNewItem(ItemState::ItemType type,
const Vec3 *server_xyz, const Vec3 *server_xyz,
const Vec3 *server_normal) const Vec3 *server_normal)
{ {
if(NetworkConfig::get()->isClient() && !server_xyz) return NULL; if (NetworkConfig::get()->isNetworking() &&
NetworkConfig::get()->isClient() && !server_xyz) return NULL;
Vec3 normal, pos; Vec3 normal, pos;
const Material* material_hit; const Material* material_hit;
if (!server_xyz) if (!server_xyz)