Remove debugging, fix flying blocks

This commit is contained in:
DemiPixel 2015-11-08 14:46:56 -08:00
parent cc072e2464
commit 687b8b971f
2 changed files with 1 additions and 4 deletions

View file

@ -91,9 +91,8 @@ function inject(serv,player)
var vec = Vec3(location.x, location.y, location.z);
var id = await player.world.getBlockType(vec);
var damage = await player.world.getBlockData(vec);
console.log('meh',id,damage);
serv.spawnObject(2, player.world, vec.clone().add(Vec3(0.5, 0.5, 0.5)), {
velocity: Vec3(Math.random()*4 - 2, Math.random()*2 + 2 + 20, Math.random()*4 - 2),
velocity: Vec3(Math.random()*4 - 2, Math.random()*2 + 2, Math.random()*4 - 2),
itemId: id,
itemDamage: damage
});

View file

@ -10,7 +10,6 @@ function inject(serv) {
serv.initEntity = (type, entityType, world, position) => {
serv.entityMaxId++;
var entity = new Entity(serv.entityMaxId);
console.log('Spawn entity',entity.id);
entity.type = type;
entity.entityType = entityType;
entity.world = world;
@ -121,7 +120,6 @@ function inject(serv) {
}, object);
if (typeof itemId != 'undefined') {
console.log(itemId, itemDamage);
object.setMetadata([{
"key": 10,
"type": 5,