1
0
mirror of https://e.coding.net/circlecloud/Residence.git synced 2025-11-24 21:46:16 +00:00

feat: 移除防刷铁轨补丁

Signed-off-by: 502647092 <admin@yumc.pw>
This commit is contained in:
2016-08-20 21:48:45 +08:00
parent 164246e6e4
commit 51fca004e1
2 changed files with 2 additions and 19 deletions

View File

@@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>pw.yumc</groupId>
<artifactId>Residence</artifactId>
<version>2.8.3.1</version>
<version>2.8.3.2</version>
<name>Residence</name>
<description>重制版本的领地插件 - 喵♂呜</description>
<build>
@@ -60,12 +60,9 @@
<properties>
<update.description>&amp;6GUI菜单上线(&amp;c测试版本 可能存在BUG&amp;6)...</update.description>
<update.changes>
&amp;b2.8.3.2 - &amp;c去除铁轨修复补丁(1.8开始无需修复)...;
&amp;b2.8.3.1 - &amp;4修复菜单监听未启用的问题(请删除一次gui.yml)...;
&amp;b2.8.3.0 - &amp;cGUI菜单测试版上线...;
&amp;b2.8.2.3 - &amp;b修改包名 兼容部分老版本插件...;
&amp;b2.8.2.2 - &amp;e自动转换UUID版本Residence的数据(部分版本)...;
&amp;c修复上个版本命令失效的问题(库文件忘了更新了);
&amp;b2.8.2.1 - &amp;c修复一个可能被熊孩子利用导致插件奔溃的BUG...;
</update.changes>
<env.GIT_COMMIT>Debug</env.GIT_COMMIT>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

View File

@@ -8,7 +8,6 @@ import org.bukkit.entity.Player;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.Action;
import org.bukkit.event.block.BlockPhysicsEvent;
import org.bukkit.event.player.PlayerInteractEvent;
import org.bukkit.inventory.ItemStack;
@@ -24,7 +23,6 @@ public class ResidenceBugFix implements Listener {
this.plugin = plugin;
plugin.getLogger().info("防刷甘蔗补丁已加载...");
plugin.getLogger().info("防刷单元补丁已加载...");
plugin.getLogger().info("防刷铁轨补丁已加载...");
plugin.getLogger().info("防刷生物补丁已加载...");
}
@@ -112,18 +110,6 @@ public class ResidenceBugFix implements Listener {
}
}
@EventHandler
public void onRailsPhysics(final BlockPhysicsEvent e) {
final Material mat = e.getChangedType();
if (mat == Material.RAILS || mat == Material.POWERED_RAIL || mat == Material.ACTIVATOR_RAIL || mat == Material.DETECTOR_RAIL) {
e.setCancelled(true);
}
}
@EventHandler
public void onSugarCanePhysics(final BlockPhysicsEvent e) {
}
private boolean checkAround(final Block b) {
final Block be = b.getRelative(BlockFace.EAST);
final Block bw = b.getRelative(BlockFace.WEST);