added ability to disable emojis on signs

This commit is contained in:
GameHerobrine 2025-05-25 20:24:35 +03:00
parent 69d3321e16
commit ccdea98d28
6 changed files with 21 additions and 3 deletions

View file

@ -1,6 +1,7 @@
<?php
class Level{
public static $disableEmojisOnSigns = true;
/**
* @var Config
*/

View file

@ -429,6 +429,13 @@ class Tile extends Position{
if($this->class !== TILE_SIGN){
return false;
}
if(Level::$disableEmojisOnSigns){
$line1 = Utils::replaceEmoji($line1);
$line2 = Utils::replaceEmoji($line2);
$line3 = Utils::replaceEmoji($line3);
$line4 = Utils::replaceEmoji($line4);
}
$this->data["Text1"] = $line1;
$this->data["Text2"] = $line2;
$this->data["Text3"] = $line3;