mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 15:16:45 +01:00
Merge pull request #293 from Glitchfinder/fixes
Additional fixes and patches.
This commit is contained in:
commit
c5120b9c72
@ -169,6 +169,7 @@ public class Config extends ConfigLoader {
|
|||||||
public int getHerbalismXPPotato() { return config.getInt("Experience.Herbalism.Potato", 50); }
|
public int getHerbalismXPPotato() { return config.getInt("Experience.Herbalism.Potato", 50); }
|
||||||
|
|
||||||
public boolean getHerbalismGreenThumbCobbleToMossy() { return config.getBoolean("Skills.Herbalism.Green_Thumb.Cobble_To_Mossy", true); }
|
public boolean getHerbalismGreenThumbCobbleToMossy() { return config.getBoolean("Skills.Herbalism.Green_Thumb.Cobble_To_Mossy", true); }
|
||||||
|
public boolean getHerbalismGreenThumbCobbleWallToMossyWall() { return config.getBoolean("Skills.Herbalism.Green_Thumb.CobbleWall_To_MossyWall", true); }
|
||||||
public boolean getHerbalismGreenThumbSmoothbrickToMossy() { return config.getBoolean("Skills.Herbalism.Green_Thumb.SmoothBrick_To_MossyBrick", true); }
|
public boolean getHerbalismGreenThumbSmoothbrickToMossy() { return config.getBoolean("Skills.Herbalism.Green_Thumb.SmoothBrick_To_MossyBrick", true); }
|
||||||
public boolean getHerbalismGreenThumbDirtToGrass() { return config.getBoolean("Skills.Herbalism.Green_Thumb.Dirt_To_Grass", true); }
|
public boolean getHerbalismGreenThumbDirtToGrass() { return config.getBoolean("Skills.Herbalism.Green_Thumb.Dirt_To_Grass", true); }
|
||||||
|
|
||||||
|
@ -230,9 +230,11 @@ public class EntityListener implements Listener {
|
|||||||
public void onEnitityExplode(EntityExplodeEvent event) {
|
public void onEnitityExplode(EntityExplodeEvent event) {
|
||||||
Entity entity = event.getEntity();
|
Entity entity = event.getEntity();
|
||||||
|
|
||||||
|
if(entity == null) return;
|
||||||
|
|
||||||
if(entity.hasMetadata("NPC")) return; // Check if this player is a Citizens NPC
|
if(entity.hasMetadata("NPC")) return; // Check if this player is a Citizens NPC
|
||||||
|
|
||||||
if (event.getEntity() instanceof TNTPrimed) {
|
if (entity instanceof TNTPrimed) {
|
||||||
int id = entity.getEntityId();
|
int id = entity.getEntityId();
|
||||||
|
|
||||||
if (plugin.tntIsTracked(id)) {
|
if (plugin.tntIsTracked(id)) {
|
||||||
|
@ -65,6 +65,9 @@ public class Herbalism {
|
|||||||
// Don't award double drops to mossified cobblestone
|
// Don't award double drops to mossified cobblestone
|
||||||
mcMMO.placeStore.setTrue(block);
|
mcMMO.placeStore.setTrue(block);
|
||||||
}
|
}
|
||||||
|
else if (Config.getInstance().getHerbalismGreenThumbCobbleWallToMossyWall() && type == Material.COBBLE_WALL) {
|
||||||
|
block.setData((byte) 1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -237,10 +240,10 @@ public class Herbalism {
|
|||||||
if (mat == Material.COCOA) {
|
if (mat == Material.COCOA) {
|
||||||
is = new ItemStack(Material.INK_SACK, 1, (short) 3);
|
is = new ItemStack(Material.INK_SACK, 1, (short) 3);
|
||||||
}
|
}
|
||||||
else if (mat == Material.COCOA) {
|
else if (mat == Material.CARROT) {
|
||||||
is = new ItemStack(Material.CARROT_ITEM, 1, (short) 0);
|
is = new ItemStack(Material.CARROT_ITEM, 1, (short) 0);
|
||||||
}
|
}
|
||||||
else if (mat == Material.COCOA) {
|
else if (mat == Material.POTATO) {
|
||||||
is = new ItemStack(Material.POTATO_ITEM, 1, (short) 0);
|
is = new ItemStack(Material.POTATO_ITEM, 1, (short) 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -154,6 +154,7 @@ public class BlockChecks {
|
|||||||
case DIRT:
|
case DIRT:
|
||||||
return true;
|
return true;
|
||||||
case SMOOTH_BRICK:
|
case SMOOTH_BRICK:
|
||||||
|
case COBBLE_WALL:
|
||||||
if (block.getData() == 0) {
|
if (block.getData() == 0) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -151,6 +151,7 @@ Skills:
|
|||||||
Level_Cap: 0
|
Level_Cap: 0
|
||||||
Green_Thumb:
|
Green_Thumb:
|
||||||
Cobble_To_Mossy: true
|
Cobble_To_Mossy: true
|
||||||
|
CobbleWall_To_MossyWall: true
|
||||||
SmoothBrick_To_MossyBrick: true
|
SmoothBrick_To_MossyBrick: true
|
||||||
Dirt_To_Grass: true
|
Dirt_To_Grass: true
|
||||||
Mining:
|
Mining:
|
||||||
|
Loading…
Reference in New Issue
Block a user