Skip to content

Commit

Permalink
Fixed #211
Browse files Browse the repository at this point in the history
  • Loading branch information
wdog5 committed Feb 1, 2024
1 parent b1b9383 commit 7dd7d47
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ private static CrashReport constructOrExtractCrashReport(Throwable cause) {
public Commands vanillaCommandDispatcher;
private boolean hasStopped = false;
private final Object stopLock = new Object();
public final double[] recentTps = new double[3];
public final double[] recentTps = new double[4];
private static final int TPS = 20;
private static final int TICK_TIME = 1000000000 / TPS;
private static final int SAMPLE_INTERVAL = 20; // Paper
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public class CraftMetaBlockState extends CraftMetaItem implements BlockStateMeta
super(tag);
this.material = material;

if (tag.contains(BLOCK_ENTITY_TAG.NBT, CraftMagicNumbers.NBT.TAG_COMPOUND)) {
if (tag != null && tag.contains(BLOCK_ENTITY_TAG.NBT, CraftMagicNumbers.NBT.TAG_COMPOUND)) {
blockEntityTag = tag.getCompound(BLOCK_ENTITY_TAG.NBT).copy();
} else {
blockEntityTag = null;
Expand Down

0 comments on commit 7dd7d47

Please sign in to comment.