Don't cache ground plants (not finished)

This commit is contained in:
Vortrex
2022-05-19 18:56:03 -05:00
parent e35871b2e1
commit 1c5ae513a8

View File

@@ -1385,7 +1385,7 @@ function setAllItemTypeDataIndexes() {
function cacheAllGroundItems() { function cacheAllGroundItems() {
clearArray(getServerData().groundItemCache); clearArray(getServerData().groundItemCache);
getServerData().groundItemCache = getServerData().items.filter(item => item.ownerType == VRR_ITEM_OWNER_GROUND); getServerData().groundItemCache = getServerData().items.filter(item => item.ownerType == VRR_ITEM_OWNER_GROUND);
getServerData().groundPlantCache = getServerData().items.filter(item => item.ownerType == VRR_ITEM_OWNER_PLANT); //getServerData().groundPlantCache = getServerData().items.filter(item => item.ownerType == VRR_ITEM_OWNER_PLANT);
} }
// =========================================================================== // ===========================================================================