Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Commit

Permalink
fix landtp.
Browse files Browse the repository at this point in the history
  • Loading branch information
Redbeanw44602 committed Feb 20, 2022
1 parent 15e45a6 commit a86df71
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion docs/_coverpage.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [AirLand Project](README)
> BDS可用的,基于LXL的全功能领地插件
> BDS可用的,基于LiteLoader的全功能领地插件
[Start now!](#%f0%9f%97%ba%ef%b8%8f-airland-project)
20 changes: 12 additions & 8 deletions iland-core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Plugin = {
Version = {
major = 2,
minor = 8,
revision = 0,
revision = 1,
toString = function()
local ver = Plugin.Version
return tostring(ver.major)..'.'..tostring(ver.minor*10 + ver.revision)
Expand Down Expand Up @@ -924,8 +924,10 @@ DataStorage = {
end,
Update = function(origin)
for landId,res in pairs(origin.Lands) do
local perm = origin.Lands[landId].permissions
local setting = origin.Lands[landId].settings
local land = origin.Lands[landId]
local perm = land.permissions
local setting = land.settings
local range = land.range
if origin.version < 240 then
return false
end
Expand All @@ -940,13 +942,15 @@ DataStorage = {
perm.useitem = nil
end
if origin.version < 280 then
local ra = origin.Lands[landId].range
if ra.start_position[2] == -64 and ra.end_position[2] == 320 then
local dim = Dimension.Get(ra.dimid)
ra.start_position[2] = dim.min
ra.end_position[2] = dim.max
if range.start_position[2] == -64 and range.end_position[2] == 320 then
local dim = Dimension.Get(range.dimid)
range.start_position[2] = dim.min
range.end_position[2] = dim.max
end
end
if origin.version < 281 then
land.settings.teleport = table.clone(land.range.end_position)
end
end
return true
end,
Expand Down
2 changes: 1 addition & 1 deletion iland/lang/en_US.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"VERSION": 280,
"VERSION": 281,

"gui.land.title": "Land v<a>",
"gui.oplandmgr.trsland.title": "Forced transfer of land",
Expand Down
2 changes: 1 addition & 1 deletion iland/lang/zh_CN.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"VERSION": 280,
"VERSION": 281,
"#1": "zh_CN 标准汉语翻译贡献者:RedbeanW",

"gui.land.title": "Land v<a>",
Expand Down
2 changes: 1 addition & 1 deletion iland/lang/zh_TW.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"VERSION": 280,
"VERSION": 281,

"gui.land.title": "Land v<a>",
"gui.oplandmgr.trsland.title": "強製過戶領地",
Expand Down

0 comments on commit a86df71

Please sign in to comment.