StickyPiston-development / CreateCobblestone

Adds a block generating cobblestone using SU, stopping cobblestone generators from eating your frames.
Creative Commons Zero v1.0 Universal
3 stars 0 forks source link

Change Generation Rate to something lower than 1/T, game just crashes #2

Closed AstroneerAddict closed 4 months ago

AstroneerAddict commented 4 months ago

is it possible to have the thing not produce during a tick and during a time period? like 1/S, for more balanced configuration. since otherwise it's always a minimum of one a tick, which is just not possible to config balance really.

-Astro

MrStickyPiston commented 4 months ago

will look into it. It could be hard because minecraft runs on ticks.

Edit: typo

MrStickyPiston commented 4 months ago

I got the problem. The datatype used for that config value is float, so 0.x is converted into 0. And then zero division crashesz the game.

MrStickyPiston commented 4 months ago

2024-06-24_17 34 16 2024-06-24_17 36 32

i think i "fixed" it by making it not possible to occur.

MrStickyPiston commented 4 months ago

I did some backend changes and now it even works with really slow generators. I hope this is what you meant. https://github.com/StickyPiston-development/CreateCobblestone/assets/97804691/59ca76f4-8cb6-447a-822a-01da90267eb0

AstroneerAddict commented 4 months ago

ooh that looks great, very much thanking you, tysm. :D

MrStickyPiston commented 4 months ago

No problem, i will release this in a few days on modrinth.

MrStickyPiston commented 4 months ago

Here you go! (for forge, neoforge, fabric and quilt. https://modrinth.com/mod/create-cobblestone/version/1.3.1+forge-1.20.1-36 https://modrinth.com/mod/create-cobblestone/version/1.3.1+fabric-1.20.1-36