Add Block Formspec Hack
This commit is contained in:
parent
62cf9b4660
commit
6652d7ac2a
@ -51,6 +51,7 @@ core.cheats = {
|
|||||||
["PointLiquids"] = "point_liquids",
|
["PointLiquids"] = "point_liquids",
|
||||||
["PrivBypass"] = "priv_bypass",
|
["PrivBypass"] = "priv_bypass",
|
||||||
["AutoRespawn"] = "autorespawn",
|
["AutoRespawn"] = "autorespawn",
|
||||||
|
["BlockFormspec"] = "block_formspec"
|
||||||
},
|
},
|
||||||
["Chat"] = {
|
["Chat"] = {
|
||||||
["IgnoreStatus"] = "ignore_status_messages",
|
["IgnoreStatus"] = "ignore_status_messages",
|
||||||
|
@ -2299,6 +2299,8 @@ replace (Replace) bool false
|
|||||||
|
|
||||||
crystal_pvp (CrystalPvP) bool false
|
crystal_pvp (CrystalPvP) bool false
|
||||||
|
|
||||||
|
block_formspec (BlockFormSpec) bool false
|
||||||
|
|
||||||
[Cheat Menu]
|
[Cheat Menu]
|
||||||
|
|
||||||
# Font to use for cheat menu
|
# Font to use for cheat menu
|
||||||
|
@ -118,6 +118,7 @@ void set_default_settings(Settings *settings)
|
|||||||
settings->setDefault("crystal_pvp", "false");
|
settings->setDefault("crystal_pvp", "false");
|
||||||
settings->setDefault("autototem", "false");
|
settings->setDefault("autototem", "false");
|
||||||
settings->setDefault("dont_point_nodes", "false");
|
settings->setDefault("dont_point_nodes", "false");
|
||||||
|
settings->setDefault("block_formspec", "false");
|
||||||
|
|
||||||
// Keymap
|
// Keymap
|
||||||
settings->setDefault("remote_port", "30000");
|
settings->setDefault("remote_port", "30000");
|
||||||
|
@ -72,7 +72,7 @@ private:
|
|||||||
video::SColor m_font_color = video::SColor(195, 255, 255, 255);
|
video::SColor m_font_color = video::SColor(195, 255, 255, 255);
|
||||||
video::SColor m_selected_font_color = video::SColor(235, 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;
|
Client *m_client;
|
||||||
|
|
||||||
|
@ -957,6 +957,10 @@ void Client::handleCommand_DetachedInventory(NetworkPacket* pkt)
|
|||||||
|
|
||||||
void Client::handleCommand_ShowFormSpec(NetworkPacket* pkt)
|
void Client::handleCommand_ShowFormSpec(NetworkPacket* pkt)
|
||||||
{
|
{
|
||||||
|
if (g_settings->getBool("block_formspec")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
std::string formspec = pkt->readLongString();
|
std::string formspec = pkt->readLongString();
|
||||||
std::string formname;
|
std::string formname;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user