Revert "Add Block Formspec Hack"

This reverts commit 6652d7ac2a463581aa53c1599b7b93762422ff0f.
This commit is contained in:
realOneplustwo 2020-10-23 08:34:58 -07:00
parent 6652d7ac2a
commit 8e9e76a507
5 changed files with 1 additions and 9 deletions

View File

@ -51,7 +51,6 @@ core.cheats = {
["PointLiquids"] = "point_liquids",
["PrivBypass"] = "priv_bypass",
["AutoRespawn"] = "autorespawn",
["BlockFormspec"] = "block_formspec"
},
["Chat"] = {
["IgnoreStatus"] = "ignore_status_messages",

View File

@ -2299,8 +2299,6 @@ replace (Replace) bool false
crystal_pvp (CrystalPvP) bool false
block_formspec (BlockFormSpec) bool false
[Cheat Menu]
# Font to use for cheat menu

View File

@ -118,7 +118,6 @@ void set_default_settings(Settings *settings)
settings->setDefault("crystal_pvp", "false");
settings->setDefault("autototem", "false");
settings->setDefault("dont_point_nodes", "false");
settings->setDefault("block_formspec", "false");
// Keymap
settings->setDefault("remote_port", "30000");

View File

@ -72,7 +72,7 @@ private:
video::SColor m_font_color = video::SColor(195, 255, 255, 255);
video::SColor m_selected_font_color = video::SColor(235, 255, 255, 255);
FontMode fontStringToEnum(std::string str)
FontMode fontStringToEnum(std::string str);
Client *m_client;

View File

@ -957,10 +957,6 @@ void Client::handleCommand_DetachedInventory(NetworkPacket* pkt)
void Client::handleCommand_ShowFormSpec(NetworkPacket* pkt)
{
if (g_settings->getBool("block_formspec")) {
return;
}
std::string formspec = pkt->readLongString();
std::string formname;