First Machine Age's Mods (Combined repo.)
Révision | d2ac4f5e9d3e1120bd0bfa81a01329390cbdf0f8 (tree) |
---|---|
l'heure | 2022-11-03 02:47:01 |
Auteur | melchior <melchior@user...> |
Commiter | melchior |
Defensive stuff V1.17, minor update
@@ -181,7 +181,7 @@ namespace FirstMachineAge | ||
181 | 181 | IBlockAccessor ba = world.BlockAccessor; |
182 | 182 | |
183 | 183 | |
184 | - if (ba.GetBlockId(upperPos) == 0 && CanPlaceBlock(world, byPlayer, blockSel, ref failureCode)) { | |
184 | + if (ba.GetBlock(upperPos, BlockLayersAccess.SolidBlocks).BlockId == 0 && CanPlaceBlock(world, byPlayer, blockSel, ref failureCode)) { | |
185 | 185 | BlockFacing[ ] horVer = SuggestedHVOrientation(byPlayer, blockSel); |
186 | 186 | |
187 | 187 | AssetLocation downBlockCode = CodeWithVariants(new Dictionary<string, string>( ) { |
@@ -3,10 +3,10 @@ | ||
3 | 3 | "name": "Defensive Structures", |
4 | 4 | "description" : "Defensive structures & barriers; ideal for outposts, castles, forts...", |
5 | 5 | "authors": ["Melchior"], |
6 | - "version": "0.1.6", | |
6 | + "version": "0.1.7-pr.0", | |
7 | 7 | "ModID":"defensive", |
8 | 8 | "dependencies": { |
9 | - "game": "1.16.0", | |
9 | + "game": "1.17.0", | |
10 | 10 | "survival": "" |
11 | 11 | }, |
12 | 12 | "website": "http://noname.nope" |