fix: blocks ticking so fast
This commit is contained in:
1 file changed
+4
-1
@@ -17,9 +17,12 @@ public abstract class ServerWorldMixin {
|
|||||||
var dt = _this.dimensionTypeRegistration();
|
var dt = _this.dimensionTypeRegistration();
|
||||||
var clock = dt.value().defaultClock();
|
var clock = dt.value().defaultClock();
|
||||||
if(clock.isEmpty()) return timeOfDay;
|
if(clock.isEmpty()) return timeOfDay;
|
||||||
|
// Day/night acceleration is driven solely by the clock below. Do NOT inflate
|
||||||
|
// gameTime here: ServerLevel.tick feeds getGameTime() into blockTicks/fluidTicks,
|
||||||
|
// so advancing it would fast-forward scheduled ticks (liquids flow faster, etc.).
|
||||||
_this.clockManager().addTicks(clock.get(), 20);
|
_this.clockManager().addTicks(clock.get(), 20);
|
||||||
MixinHelper.spedUp = true;
|
MixinHelper.spedUp = true;
|
||||||
return timeOfDay + 10;
|
return timeOfDay;
|
||||||
}
|
}
|
||||||
MixinHelper.spedUp = false;
|
MixinHelper.spedUp = false;
|
||||||
return timeOfDay;
|
return timeOfDay;
|
||||||
|
|||||||
Reference in new issue
Block a user