From dc7706184094e653dbb46310195e88604c007854 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sat, 9 Mar 2024 12:18:22 +1100 Subject: hopefully fix #33 in OpenStarbound, players can place blocks with their own collision type. this can cause objects to override the collision type if the object has material spaces and a previous attempt at accounting for this led to that bug: giving object collision its own field in the server tile should fix this --- source/base/StarAssets.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/base/StarAssets.cpp') diff --git a/source/base/StarAssets.cpp b/source/base/StarAssets.cpp index 5628e4f..de7bc51 100644 --- a/source/base/StarAssets.cpp +++ b/source/base/StarAssets.cpp @@ -681,7 +681,7 @@ ByteArray Assets::read(String const& path) const { Json Assets::checkPatchArray(String const& path, AssetSourcePtr const& source, Json const result, JsonArray const patchData, Maybe const external) const { auto externalRef = external.value(); auto newResult = result; - for (auto const patch : patchData) { + for (auto const& patch : patchData) { switch(patch.type()) { case Json::Type::Array: // if the patch is an array, go down recursively until we get objects try { -- cgit v1.2.3