b6b3cbed81
Merge branch '1.21' into worldgen-placement-providers
2025-03-22 00:38:45 +07:00
0126d4d976
Don't override nextGaussian, because JVM implementation should be generally faster
2025-03-22 00:30:03 +07:00
ab2cc33b7a
"Smart storage exchange icon"
2025-03-21 21:24:16 +07:00
bfb8f0380a
Panel debug rendering
2025-03-21 21:10:46 +07:00
06f109575d
Fix children not getting re-sorted upon visibility changes
2025-03-21 18:18:07 +07:00
a2d9f43a2e
Fix grid panel layouts, introduce column major order
2025-03-21 18:17:50 +07:00
7c028b1fa6
Im with stupid
2025-03-21 15:11:09 +07:00
57c6bbb795
Update cases where wrong random being used
2025-03-21 14:00:19 +07:00
3e92c5272d
Move panels additional types to separate file
2025-03-21 13:52:00 +07:00
f9821aa552
Use GJRAND64 in menus
2025-03-21 13:36:46 +07:00
b921658eb2
Remove randomGenerator
from editable panel
2025-03-21 13:34:53 +07:00
9b27ed7fb6
Add netFloat and nextDouble helper methods to RandomSource
2025-03-21 13:33:53 +07:00
269227f6cf
Add helper methods for fast DockProperty creation
2025-03-21 12:58:13 +07:00
27834cc595
Fix wrong layout final iteration value
2025-03-21 12:23:08 +07:00
c343de6031
Parenting callbacks in panels
2025-03-21 10:45:07 +07:00
e6c9708652
Add layout modes to grid panel
2025-03-21 08:07:43 +07:00
a48aaf52ae
Add DockProperty#all variant
2025-03-21 07:19:03 +07:00
9b384f2213
Implement sizeToContents() for GridPanel
2025-03-21 07:18:42 +07:00
10f250b822
Provide convenient unit packet registration
2025-03-18 18:58:51 +07:00
7f299a6dec
Provide Unit (singleton) codecs
2025-03-18 18:58:49 +07:00
442a7b7496
Declare event listener functions as internal
2025-03-18 18:40:07 +07:00
2f016a76a6
Declare registerNetworkPackets as internal
2025-03-18 18:27:54 +07:00
71186b7c30
Ignore /.kotlin
2025-03-18 18:27:29 +07:00
7f362a95a2
Rearrange icons in quickmove
2025-03-17 23:01:58 +07:00
5b68a6c7ba
Add "quick move" to/from storage graphics
2025-03-17 11:23:51 +07:00
9a5614de65
Don't drop experience capsules when keepInventory is enabled
2025-03-16 17:29:13 +07:00
df5c8dc6aa
Make Matter Decomposer throttle for 1 tick when buffer can't fit all matter produced
2025-03-16 00:31:05 +07:00
f599f1c2b9
Fix saturation going negative
2025-03-15 13:23:34 +07:00
962ecb1996
Use nextDouble() because PRNG provides 64 bit numbers
2025-03-15 10:42:45 +07:00
42386e1fbe
Update commentary on otmRandom
2025-03-15 10:08:02 +07:00
b7b2b8095c
Revert "Remove otmRandom"
...
This reverts commit 5a016bef
The way OTM uses random generator in its code will quickly cause LCG used in Minecraft to show its bias
because LCG in minecraft samples its highest 48 bits, which gives us at best 2^16 period in the lowest bit returned by LCG.
Which it doesn't sound bad, it quickly causes RNG become biased the quicker/more it is sampled on each tick, especially considering
some may use `level.random.nextInt(chance) == 0` to determine chance of something happening,
which will get extremely biased on heavy RNG congested environment
If we avoid sampling Level's generator this much, we won't suffer from bias in our own code, as well as avoid biasing other mods this much.
The "2^16 period" problem is also might be the reason why Entities get their own instance of RandomSource, and Mob Goals use random exactly the way described above (`nextInt(chance)`), which can and will suffer from bias the moment mob exists in world for more than 2^16 ticks (but actual bias will happen sooner because RNG is not sampled only once per tick, obviously)
2025-03-15 10:04:16 +07:00
bc5ad7f37b
кипяточек
2025-03-14 19:47:13 +07:00
579445fbbe
Nerf food for androids further
2025-03-14 17:44:26 +07:00
80ff50b937
Nullify excess hunger when eating as android
2025-03-14 17:40:16 +07:00
ca37b4959f
Bring back old behavior where exhaustion is immediately nullified by energy buffer on Androids
2025-03-14 17:36:55 +07:00
5d8f2d5a4a
Add REGENERATE_ENERGY_EFFICIENCY_FOOD and REGENERATE_ENERGY_EFFICIENCY_SATURATION
2025-03-14 12:04:16 +07:00
e06928a4b5
Update mixin signature
2025-03-14 11:24:58 +07:00
d10b1b4ee1
Aeugh
2025-03-14 11:21:08 +07:00
922f94b9de
e
2025-03-14 11:02:08 +07:00
b23bda2f6a
Move android package to player package
2025-03-14 10:54:08 +07:00
c4d5ffefa5
Move all logic regarding food / regeneration to MatteryFoodData
2025-03-14 10:37:54 +07:00
a34b485e68
Base replacement for FoodData
2025-03-14 08:52:36 +07:00
c3b2681e89
Rename AndroidConfig to PlayerConfig
2025-03-12 20:57:57 +07:00
cfd6b101d8
Fix addEatEffect hook
2025-03-12 20:31:59 +07:00
0424dd1944
Rename mattery player reference in coremod
2025-03-12 19:34:26 +07:00
05a081d9cb
Move MatteryPlayer to player subpackage
2025-03-12 19:33:20 +07:00
b68b1d724a
Move IMatteryPlayer as well as shortcuts to player subpackage
2025-03-12 19:28:54 +07:00
97c4922765
a
2025-03-11 18:26:50 +07:00
d2e7971726
Merge branch '1.21' into worldgen-placement-providers
2025-03-11 18:01:55 +07:00
4df51ce126
Add better random to recommended mods
2025-03-11 17:53:18 +07:00