package ru.beykerykt.lightsource.sources;

import org.bukkit.entity.LivingEntity;

import ru.beykerykt.lightsource.items.Item;

public class LivingOwnedSource extends OwnedSource {

	public LivingOwnedSource(LivingEntity entity, Item item) {
		super(entity, item);
	}

	@Override
	public LivingEntity getOwner() {
		return (LivingEntity) super.getOwner();
	}
}

@@ -36,16 +36,44 @@
 urces;%0A%0A
+import org.bukkit.Location;%0A
 import o
@@ -379,11 +379,130 @@
 er();%0A%09%7D
+%0A%0A%09@Override%0A%09public void setLocation(Location loc) %7B%0A%09%09super.setLocation(loc.add(0, getOwner().getEyeHeight(), 0));%0A%09%7D
 %0A%7D%0A

set location with entity height