Typo fixing round

Light check over all scarpet docs

Resolves #1626, resolves #1613, resolves #1597, some of the fixes are from these
This commit is contained in:
altrisi committed 2023-01-18 14:14:36 +01:00
1 parent 0e8b53c8d3
commit 005368c3d9
12 files changed
+34 -37

No files matched your search

@@ -8,7 +8,6 @@ import java.util.ArrayList;
import java.util.List;
import net.minecraft.core.RegistryAccess;
import net.minecraft.core.registries.BuiltInRegistries;
import net.minecraft.core.registries.Registries;
import net.minecraft.network.chat.Component;
import net.minecraft.world.entity.Entity;
@@ -29,7 +28,7 @@ public class ExplosionLogHelper
private final Object2IntMap<EntityChangedStatusWithCount> impactedEntities = new Object2IntOpenHashMap<>();
private static long lastGametime = 0;
private static int explosionCountInCurretGT = 0;
private static int explosionCountInCurrentGT = 0;
private static boolean newTick;
public ExplosionLogHelper(double x, double y, double z, float power, boolean createFire, Explosion.BlockInteraction blockDestructionType, RegistryAccess regs) {
@@ -49,22 +48,22 @@ public class ExplosionLogHelper
{
newTick = false;
if (!(lastGametime == gametime)){
explosionCountInCurretGT = 0;
explosionCountInCurrentGT = 0;
lastGametime = gametime;
newTick = true;
}
explosionCountInCurretGT++;
explosionCountInCurrentGT++;
LoggerRegistry.getLogger("explosions").log( (option) -> {
List<Component> messages = new ArrayList<>();
if(newTick) messages.add(c("wb tick : ", "d " + gametime));
if ("brief".equals(option))
{
messages.add( c("d #" + explosionCountInCurretGT,"gb ->",
messages.add( c("d #" + explosionCountInCurrentGT,"gb ->",
Messenger.dblt("l", pos.x, pos.y, pos.z), (affectBlocks)?"m (affects blocks)":"m (doesn't affect blocks)" ));
}
if ("full".equals(option))
{
messages.add( c("d #" + explosionCountInCurretGT,"gb ->", Messenger.dblt("l", pos.x, pos.y, pos.z) ));
messages.add( c("d #" + explosionCountInCurrentGT,"gb ->", Messenger.dblt("l", pos.x, pos.y, pos.z) ));
messages.add(c("w affects blocks: ", "m " + this.affectBlocks));
messages.add(c("w creates fire: ", "m " + this.createFire));
messages.add(c("w power: ", "c " + this.power));