Restored change lost in conflict resolve

Also checking for itemprefab because adding structures wouldn't make any sense here
This commit is contained in:
juanjp600
2016-10-05 16:58:44 -03:00
parent d839de3258
commit ffeda27c1b

View File

@@ -506,7 +506,7 @@ namespace Barotrauma.Networking
foreach (MapEntityPrefab pf in MapEntityPrefab.list)
{
if (pf.Price <= 0.0f) continue;
if (!(pf is ItemPrefab) || (pf.Price <= 0.0f && !pf.tags.Contains("smallitem"))) continue;
GUITextBlock textBlock = new GUITextBlock(
new Rectangle(0, 0, 260, 25),