mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Don't simulate block breaks when assigning furnace ownership
This commit is contained in:
parent
2910240942
commit
3ae1b5e987
@ -1,3 +1,6 @@
|
|||||||
|
Version 2.1.135
|
||||||
|
Furnaces no longer simulate block break checks when assigning ownership as it caused some unwanted plugin conflicts
|
||||||
|
|
||||||
Version 2.1.134
|
Version 2.1.134
|
||||||
Furnaces now change ownership to the last player who clicks in their inventory and is legally allowed to break the furnace
|
Furnaces now change ownership to the last player who clicks in their inventory and is legally allowed to break the furnace
|
||||||
Smelting now has a Bonus Drops section in config.yml
|
Smelting now has a Bonus Drops section in config.yml
|
||||||
|
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||||
<artifactId>mcMMO</artifactId>
|
<artifactId>mcMMO</artifactId>
|
||||||
<version>2.1.134</version>
|
<version>2.1.135-SNAPSHOT</version>
|
||||||
<name>mcMMO</name>
|
<name>mcMMO</name>
|
||||||
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
||||||
<scm>
|
<scm>
|
||||||
|
@ -53,11 +53,8 @@ public class SmeltingTracker {
|
|||||||
if(!Permissions.skillEnabled(player, PrimarySkillType.SMELTING))
|
if(!Permissions.skillEnabled(player, PrimarySkillType.SMELTING))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
//If the player is legally allowed to break the block then they can steal ownership
|
|
||||||
if(EventUtils.simulateBlockBreak(furnace.getBlock(), player, true)) {
|
|
||||||
changeFurnaceOwnership(furnace, player);
|
changeFurnaceOwnership(furnace, player);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
public void untrackFurnace(Furnace furnace) {
|
public void untrackFurnace(Furnace furnace) {
|
||||||
furnaceOwners.remove(furnace);
|
furnaceOwners.remove(furnace);
|
||||||
|
Loading…
Reference in New Issue
Block a user