Skip to content

Commit

Permalink
UDOC-0 - Fix some bugs and update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
telvarost committed Jan 13, 2024
1 parent 74814f2 commit a5c535c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
* Allow Gaps In Ladders
* Elevator Boats
* Infinite Fire Spread And Selectable Tick Rate
* WARNING: Please be careful with this setting, always make sure it is false when editing configs unless if you really want it true
* Note: There currently seems to be a bug with GlassConfigAPI where Integer configs need to be saved twice to take effect
* Hide Achievement Notifications
* Hoe Grass For Seeds
* Minecart Boosters
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
/*
* Thanks to Amb0s for the original solution: https://github.com/Amb0s
*/
@Mixin(value = Fire.class, remap = false)
@Mixin(Fire.class)
public class FireMixin extends BlockBase
{
public FireMixin(int i, int j) {
Expand All @@ -22,7 +22,7 @@ public FireMixin(int i, int j) {
}

@ModifyConstant(method = "getTickrate", constant = @Constant(intValue = 40))
private int changeTickRate(int a)
private int betaTweaks_getTickrate(int a)
{
// It is 10 in beta before 1.6:
return (Config.ConfigFields.fireTickRate * 10);
Expand All @@ -34,7 +34,7 @@ private int changeTickRate(int a)
at = @At(value = "INVOKE",
target = "Lnet/minecraft/level/Level;placeBlockWithMetaData(IIIII)Z")
)
private boolean infiniteSpreading(@NotNull Level level, int x, int y, int z, int id, int meta)
private boolean betaTweaks_fireTick(@NotNull Level level, int x, int y, int z, int id, int meta)
{
// Make new fire blocks spawn with zero old:
if (Config.ConfigFields.infiniteFireSpread)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
/*
* Thanks to EOfSL for the original solution: https://github.com/EOfSL
*/
@Mixin(value = Living.class, remap = false)
@Mixin(Living.class)
abstract class LivingMixin extends EntityBase
{
public LivingMixin(Level arg) {
Expand Down

0 comments on commit a5c535c

Please sign in to comment.