Skip to content
Permalink
Browse files

don't let producers empty extra slots (#1864)

  • Loading branch information
MDT-Maikel committed Dec 16, 2016
1 parent d47c5eb commit 7ef0fc5568a4e4ee28f1838cfbb4380f5c771937
Showing with 2 additions and 2 deletions.
  1. +2 −2 planet/Objects.ocd/Libraries.ocd/Structures.ocd/Producer.ocd/Script.c
@@ -851,8 +851,8 @@ public func IsCollectionAllowed(object item)

public func RejectCollect(id item_id, object item)
{
// Is the object a container? If so, try to empty it.
if (item->~IsContainer() || item->~IsLiquidContainer())
// Is the object a container? If so, try to empty it. Don't empty extra slots.
if ((item->~IsContainer() && !item->~HasExtraSlot()) || item->~IsLiquidContainer())
{
GrabContents(item);
}

0 comments on commit 7ef0fc5

Please sign in to comment.
You can’t perform that action at this time.