mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-21 12:09:43 +00:00
added ability to disable emojis on signs
This commit is contained in:
parent
69d3321e16
commit
ccdea98d28
6 changed files with 21 additions and 3 deletions
|
|
@ -1,6 +1,7 @@
|
|||
<?php
|
||||
|
||||
class Level{
|
||||
public static $disableEmojisOnSigns = true;
|
||||
/**
|
||||
* @var Config
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue