mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
2.1.27 - Fixed an exploit that allowed players to dupe torches, rails, etc
This commit is contained in:
parent
65687ca603
commit
732726bbd3
@ -7,6 +7,9 @@ Key:
|
|||||||
! Change
|
! Change
|
||||||
- Removal
|
- Removal
|
||||||
|
|
||||||
|
Version 2.1.27
|
||||||
|
Fixed an exploit that allowed players to duplicate torches, and rails
|
||||||
|
|
||||||
Version 2.1.26
|
Version 2.1.26
|
||||||
Added new scaling damage buffs to all existing Combat Skills
|
Added new scaling damage buffs to all existing Combat Skills
|
||||||
Added a new subskill named Stab to Swords
|
Added a new subskill named Stab to Swords
|
||||||
|
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.26</version>
|
<version>2.1.27</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>
|
||||||
|
@ -62,6 +62,9 @@ public class BlockListener implements Listener {
|
|||||||
{
|
{
|
||||||
ItemStack is = new ItemStack(item.getItemStack());
|
ItemStack is = new ItemStack(item.getItemStack());
|
||||||
|
|
||||||
|
if(!event.getBlock().getDrops().contains(is))
|
||||||
|
continue;
|
||||||
|
|
||||||
if(is.getAmount() <= 0)
|
if(is.getAmount() <= 0)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@ -70,6 +73,7 @@ public class BlockListener implements Listener {
|
|||||||
//Extra Protection
|
//Extra Protection
|
||||||
if(event.getBlock().getState() instanceof Container)
|
if(event.getBlock().getState() instanceof Container)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
event.getBlock().getState().removeMetadata(mcMMO.doubleDropKey, plugin);
|
event.getBlock().getState().removeMetadata(mcMMO.doubleDropKey, plugin);
|
||||||
event.getBlock().getState().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
|
event.getBlock().getState().getWorld().dropItemNaturally(event.getBlockState().getLocation(), is);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user