浏览代码

Version 1.2.05

nossr50 13 年之前
父节点
当前提交
56992de506
共有 3 个文件被更改,包括 12 次插入3 次删除
  1. 7 0
      src/Changelog.txt
  2. 4 2
      src/com/gmail/nossr50/listeners/mcPlayerListener.java
  3. 1 1
      src/plugin.yml

+ 7 - 0
src/Changelog.txt

@@ -1,5 +1,12 @@
 Changelog:
 #Versions without changelogs probably had very small misc fixes, like tweaks to the source code
+Version 1.2.05
+Fixed my fix of not being able to place blocks near/on Anvils
+Fixed resources in inventory not correctly updating after Repair
+
+Version 1.2.04
+Fixed bug where you could not place blocks near/on the Anvil
+
 Version 1.2.03
 skills2 and experience2 will be removed from MySQL DB automagically when this version first runs
 Fishing is now stored in skills and experience tables on the MySQL DB as it should have been

+ 4 - 2
src/com/gmail/nossr50/listeners/mcPlayerListener.java

@@ -188,10 +188,12 @@ public class mcPlayerListener extends PlayerListener
 				}
 			}
 
-			if(block != null && player != null && mcPermissions.getInstance().repair(player) && event.getClickedBlock().getTypeId() == 42)
+			if(block != null && player != null && mcPermissions.getInstance().repair(player) 
+					&& event.getClickedBlock().getTypeId() == 42 && (Repair.isTools(player.getItemInHand()) || Repair.isArmor(player.getItemInHand())))
 			{
-				event.setCancelled(true);//This is a fix for the sword repair bug
 				Repair.repairCheck(player, is, event.getClickedBlock());
+				event.setCancelled(true);
+				player.updateInventory();
 			}
 
 			if(LoadProperties.enableAbilities && m.abilityBlockCheck(block))

+ 1 - 1
src/plugin.yml

@@ -1,6 +1,6 @@
 name: mcMMO
 main: com.gmail.nossr50.mcMMO
-version: 1.2.03
+version: 1.2.05
 softdepend: [Spout]
 author: nossr50
 description: mcMMO takes core Minecraft game mechanics and expands them to add an extensive RPG experience, the goal of the project has always been a quality RPG experience. Everything in mcMMO is carefully thought out and is constantly improving. mcMMO adds eleven skills to train in and level in, while also offering a high level of customization for server admins. There are countless features, including custom sounds, graphical elements, and more added when running mcMMO in conjunction with Spout. I carefully read feedback and evaluate the mechanics of mcMMO in every update to provide an ever-evolving experience.