mirror of
https://github.com/songoda/UltimateStacker.git
synced 2024-12-31 21:07:47 +01:00
Merge branch 'development'
This commit is contained in:
commit
7b7daf37d5
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
||||
<groupId>com.songoda</groupId>
|
||||
<artifactId>UltimateStacker</artifactId>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<version>2.1</version>
|
||||
<version>2.1.1</version>
|
||||
<build>
|
||||
<defaultGoal>clean install</defaultGoal>
|
||||
<finalName>UltimateStacker-${project.version}</finalName>
|
||||
|
@ -228,6 +228,10 @@ public class UltimateStacker extends SongodaPlugin {
|
||||
|
||||
@Override
|
||||
public void onDataLoad() {
|
||||
if (HologramManager.isEnabled())
|
||||
// Set the offset so that the holograms don't end up inside the blocks.
|
||||
HologramManager.getHolograms().setPositionOffset(.5,.65,.5);
|
||||
|
||||
// Load current data.
|
||||
final boolean useSpawnerHolo = Settings.SPAWNER_HOLOGRAMS.getBoolean();
|
||||
this.dataManager.getSpawners((spawners) -> {
|
||||
|
@ -57,6 +57,7 @@ public class BlockListeners implements Listener {
|
||||
boolean isStacked = blockStackManager.isBlock(block.getLocation());
|
||||
|
||||
CompatibleMaterial blockType = CompatibleMaterial.getMaterial(block);
|
||||
if (blockType == null) return;
|
||||
|
||||
if (isStacked || Settings.STACKABLE_BLOCKS.getStringList().contains(blockType.name())) {
|
||||
BlockStack stack = blockStackManager.getBlock(block, blockType);
|
||||
|
Loading…
Reference in New Issue
Block a user