h1z1-server 0.48.1-2 → 0.48.1-3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/2016/dataSources/AllowedFileHashes.json +1 -1
- package/data/2016/lootTables/containers/Crate.json +2 -2
- package/data/2016/lootTables/containers/Farmer.json +2 -2
- package/data/2016/lootTables/ground/ItemSpawnerFarm.adr.json +1 -1
- package/package.json +1 -1
- package/src/servers/ZoneServer2016/managers/constructionmanager.ts +15 -3
package/package.json
CHANGED
|
@@ -474,8 +474,6 @@ export class ConstructionManager {
|
|
|
474
474
|
// for construction entities that don't have a parentObjectCharacterId from the client
|
|
475
475
|
let freeplaceParentCharacterId = "";
|
|
476
476
|
// TODO: SEARCH FOUNDATIONS IN GRID RANGE INSTEAD OF ALL OF THEM
|
|
477
|
-
// TODO: CHECK DECKS BEFORE TAMPERS SO OBJECTS PLACED ON A DECK DON'T GET INCORRECTLY
|
|
478
|
-
// PARENTED TO THE TAMPER A DECK IS ON
|
|
479
477
|
for (const a in server._constructionFoundations) {
|
|
480
478
|
const foundation = server._constructionFoundations[a];
|
|
481
479
|
// check if inside a shelter even if not inside foundation (large shelters can extend it)
|
|
@@ -507,7 +505,21 @@ export class ConstructionManager {
|
|
|
507
505
|
});
|
|
508
506
|
}
|
|
509
507
|
|
|
510
|
-
// check
|
|
508
|
+
// check expansion decks before the foundation/tamper itself
|
|
509
|
+
if (!Number(freeplaceParentCharacterId)) {
|
|
510
|
+
Object.values(foundation.occupiedExpansionSlots).forEach(
|
|
511
|
+
(expansion) => {
|
|
512
|
+
if (
|
|
513
|
+
!Number(freeplaceParentCharacterId) &&
|
|
514
|
+
expansion.isInside(position)
|
|
515
|
+
) {
|
|
516
|
+
freeplaceParentCharacterId = expansion.characterId;
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
);
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
// check foundation last so expansion decks/shelters take priority
|
|
511
523
|
if (
|
|
512
524
|
!Number(freeplaceParentCharacterId) &&
|
|
513
525
|
foundation.isInside(position)
|