mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 05:36:46 +01:00
Fixing excessive null chunk before earning Woodcutting experience.
This commit is contained in:
parent
7859660ece
commit
a8a90ee815
@ -424,7 +424,15 @@ public class WoodCutting {
|
|||||||
xp = ModChecks.getCustomBlock(block).getXpGain();
|
xp = ModChecks.getCustomBlock(block).getXpGain();
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
TreeSpecies species = TreeSpecies.getByData(block.getData());
|
byte type = block.getData();
|
||||||
|
|
||||||
|
if((type & 0x4) == 0x4)
|
||||||
|
type ^= 0x4;
|
||||||
|
|
||||||
|
if((type & 0x8) == 0x8)
|
||||||
|
type ^= 0x8;
|
||||||
|
|
||||||
|
TreeSpecies species = TreeSpecies.getByData(type);
|
||||||
|
|
||||||
//Apparently species can be null in certain cases (custom server mods?)
|
//Apparently species can be null in certain cases (custom server mods?)
|
||||||
//https://github.com/mcMMO-Dev/mcMMO/issues/229
|
//https://github.com/mcMMO-Dev/mcMMO/issues/229
|
||||||
|
Loading…
Reference in New Issue
Block a user