From 9131bb4b227da04d558a2872e2f177af31be974d Mon Sep 17 00:00:00 2001 From: Coder12a <38924418+Coder12a@users.noreply.github.com> Date: Thu, 18 Oct 2018 00:36:28 -0500 Subject: [PATCH] Remove all banner code. --- README.md | 6 +++--- factions.lua | 13 ------------- 2 files changed, 3 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index af909de..2d8030d 100644 --- a/README.md +++ b/README.md @@ -7,8 +7,6 @@ Mod for handling in game factions and reputation. Redo the parcel attack system. -Remove banner code. - Add command to show or hide all parcel position locations as markers. Money. @@ -27,4 +25,6 @@ Complete the diplomacy system. Make claim's depth not go to high or low. Or make it act like a protection block where you have to claim land upwards and downwards. -Add a show claim command (show small entity boxes like in protection mod). \ No newline at end of file +Add a show claim command (show small entity boxes like in protection mod). + +Remove banner code. \ No newline at end of file diff --git a/factions.lua b/factions.lua index 70c5b1c..e5246c8 100644 --- a/factions.lua +++ b/factions.lua @@ -965,19 +965,6 @@ minetest.is_protected = function(pos, player) local parcelpos = factions.get_parcel_pos(pos) local parcel_faction = factions.get_parcel_faction(parcelpos) local player_faction = factions.get_player_faction(player) - -- check if wielding death banner - local player_info = minetest.get_player_by_name(player) - if not player_info then - if parcel_faction then - return true - else - return false - end - end - local player_wield = player_info:get_wielded_item() - if player_wield:get_name() == "banners:death_banner" and player_faction then --todo: check for allies, maybe for permissions - return not player_faction:has_permission(player, "claim") and player_faction.power > 0 and not parcel_faction.is_admin - end -- no faction if not parcel_faction then return default_is_protected(pos, player)