Skip to content

Commit 32906bd

Browse files
authored
Merge pull request #135 from aternosorg/ticking-entity-name-without-namespace
Support detection of ticking block entity without a namespace
2 parents 49bc2f6 + 8254247 commit 32906bd

4 files changed

Lines changed: 5880 additions & 1 deletion

File tree

src/Analysis/Problem/CrashReport/TickingBlockEntityProblem.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class TickingBlockEntityProblem extends TickingEntityProblem
88
{
9-
protected const string PATTERN_ENTITY_NAME = "/-- Block entity being ticked --\nDetails:(?:\n\t.*)*\n\s+Name: ([\w\.]+:[\w\.]+)/";
9+
protected const string PATTERN_ENTITY_NAME = "/-- Block entity being ticked --\nDetails:(?:\n\t.*)*\n\s+Name: ((?:[\w\.]+:)?[\w\.]+)/";
1010
protected const string PATTERN_ENTITY_TYPE = "/-- Block entity being ticked --\nDetails:(?:\n\s.*)*\n\s+Block[\s\w]*: .*?([\w\.]+:[\w\.]+)/";
1111
protected const string PATTERN_ENTITY_LOCATION = "/-- Block entity being ticked --\nDetails:(?:\n\s.*)*\n\s+Block location: World: \(([\d-]+),([\d-]+),([\d-]+)\)/";
1212

0 commit comments

Comments
 (0)