Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
更新到 v1.9-a2.1 版本: 修复铁砧 setAllowMove0 函数的判断逻辑问题bug
Browse files Browse the repository at this point in the history
  • Loading branch information
u2g committed Feb 14, 2017
1 parent f66e98a commit b7e63ff
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# MoonLake [![GitHub version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=gh&type=6&v=1.9-a2&x2=0)](https://github.com/u2g/MoonLake) [![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)](https://github.com/u2g/MoonLake) [![Open Source Love](https://badges.frapsoft.com/os/gpl/gpl.svg?v=102)](https://github.com/u2g/MoonLake)
# MoonLake [![GitHub version](https://d25lcipzij17d.cloudfront.net/badge.svg?id=gh&type=6&v=1.9-a2.1&x2=0)](https://github.com/u2g/MoonLake) [![Open Source Love](https://badges.frapsoft.com/os/v1/open-source.svg?v=102)](https://github.com/u2g/MoonLake) [![Open Source Love](https://badges.frapsoft.com/os/gpl/gpl.svg?v=102)](https://github.com/u2g/MoonLake)

Minecraft MoonLake Core API Plugin
By Month_Light Ver: 1.9-a2
By Month_Light Ver: 1.9-a2.1

## 简介
这个插件提供了大量的 API 功能,实现了一些 Bukkit 无法做到的 NMS 功能<br />
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<groupId>com.minecraft.moonlake</groupId>
<artifactId>MoonLake</artifactId>
<packaging>jar</packaging>
<version>1.9-a2</version>
<version>1.9-a2.1</version>

<properties>
<maven.compiler.source>1.8</maven.compiler.source>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/minecraft/moonlake/MoonLakePlugin.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* <hr />
* <div>
* <h1>Minecraft MoonLake Core API Plugin</h1>
* <p>By Month_Light Ver: 1.9-a2</p>
* <p>By Month_Light Ver: 1.9-a2.1</p>
* <p>Website: <a href="http://www.mcyszh.com" target="_blank" style="text-decoration: none;">MoonLake Website</a></p>
* <p>QQ Group: 377607025 -> <a href="http://jq.qq.com/?_wv=1027&k=2IfPFrH" target="_blank">Jump</a></p>
* <hr />
Expand Down Expand Up @@ -67,7 +67,7 @@
* <h1>修改操作请您遵守 <a href="https://github.com/u2g/MoonLake/blob/master/LICENSE" target="_blank">GPLv3</a> 协议,您必须公开修改过的所有代码!</h1>
* </div>
*
* @version 1.9-a2
* @version 1.9-a2.1
* @author Month_Light
*/
public class MoonLakePlugin extends JavaPlugin implements MoonLake {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class AnvilWindowExpression implements AnvilWindow {
public AnvilWindowExpression(Plugin plugin) {

this.plugin = plugin;
this.allowMove = true;
this.setAllowMove(true);
}


Expand Down Expand Up @@ -109,7 +109,7 @@ public void setAllowMove(boolean allowMove) {
*/
private void setAllowMove0(boolean flag) {

if(flag && listenerMove == null) {
if(!flag && listenerMove == null) {

listenerMove = new MoonLakeListener() {

Expand All @@ -134,7 +134,7 @@ public void onAnvilMove(InventoryClickEvent event) {
};
registerListener(listenerMove);
}
else if(!flag && listenerMove != null) {
else if(flag && listenerMove != null) {

disposeMove();
}
Expand Down

0 comments on commit b7e63ff

Please sign in to comment.